Tortoiseproc update with pathfile works, commit does not

44 views
Skip to first unread message

Neil Peers

unread,
Apr 6, 2023, 8:05:00 AM4/6/23
to TortoiseSVN
Windows 11 platform, Tortoise 1.14.99 Build 29538
I have written a script using command:update /pathfile pointing to a file which has a list of paths to folders to update, this works as expected.

If I copy the the same script and use command:commit instead of update, it does not work. The GUI opens with the list of paths but on pressing OK I get a Commit fail message with the Error Message  "<path> is not under version control"

If I try a single line commit  using  /path:"<path>"  it does work.

<path> is of course appropriate to each folder, such as C:\MEDC\CorporateDocs\trunk\

If the update using pathfile works and commit using a single path works but commit using pathfile, to the same file as in the update, doesn't, what am I doing wrong please?

Many thanks

Neil


Daniel Sahlberg

unread,
Apr 6, 2023, 9:49:13 AM4/6/23
to TortoiseSVN
As far as I can tell (also from testing) it should behave exactly the same with both update and commit. Are you sure you have exactly the same file contents and also that the file is UTF-16 without BOM (see the manual, [1])?

Kind regards,
Daniel






 

Neil Peers

unread,
Apr 6, 2023, 11:36:14 AM4/6/23
to TortoiseSVN
Hi Daniel

Yes I am sure it is the same file and yes to the UTF-16 without BoM. I had to look up how to do that with my editor - and the Update does not work unless it is UTF-16.
An option is to save the path file as UTF-16 Big Endian No Bom, as opposed to just UTF-16 No BoM, could that be it?

The same thing happens on 3 separate PCs too. The other 2 of which are Windows 10 with the last formal release of Tortoise. The path files for each PC have been individually written on each PC and they all work for the update but not for the commit. 
My files are attached in case you can spot something I've got wrong.

The command line files are normally .bat but gmail won't attach those.

Thanks for the prompt response.

Regards

Neil

The snip shows my editor (Ultraedit) showing UTF-16. 


image.png



Neil Peers
Director
Medina Electronics Design Consultancy Ltd
The White House
Marks Corner
Newport
Isle Of Wight
PO30 5UD

0771 737 5917
Company Registration Nos. 13912894


--
You received this message because you are subscribed to a topic in the Google Groups "TortoiseSVN" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tortoisesvn/bXmlp0DsZ_k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tortoisesvn...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tortoisesvn/0504e9e5-5fde-4a03-8ba0-c791ea194b77n%40googlegroups.com.
PathToFilesForTortoise.txt
UpdateAll.txt
CommitAll.txt

Stefan

unread,
Apr 6, 2023, 11:39:25 AM4/6/23
to TortoiseSVN
On Thursday, April 6, 2023 at 2:05:00 PM UTC+2 ne...@medina-electronics.co.uk wrote:
Windows 11 platform, Tortoise 1.14.99 Build 29538
I have written a script using command:update /pathfile pointing to a file which has a list of paths to folders to update, this works as expected.

If I copy the the same script and use command:commit instead of update, it does not work. The GUI opens with the list of paths but on pressing OK I get a Commit fail message with the Error Message  "<path> is not under version control"

If I try a single line commit  using  /path:"<path>"  it does work.

<path> is of course appropriate to each folder, such as C:\MEDC\CorporateDocs\trunk\

You can not commit multiple paths if they're not all inside the same working copy.
 

Neil Peers

unread,
Apr 7, 2023, 4:44:53 AM4/7/23
to TortoiseSVN
Thanks Stefan, I can see the logic in that though I can't help thinking that it defeats the purpose of the pathfile function.
To test that explanation, I thought a single path in the path file would work,  only that doesn't work either. Something is still not right with either my understanding of what should happen or the function itself. I suspect the former.
The attached shows screen shots of the sequence.

If anyone can explain what is going on in layman's terms I would very much appreciate it.

Thanks

Neil 
CommitNotWorking.pdf

Stefan

unread,
Apr 11, 2023, 1:08:47 PM4/11/23
to TortoiseSVN
Sorry, took me a while to figure this out since I couldn't reproduce it first.

The problem is your txt file with the paths in it: there are empty lines in it!
Remove all the newlines after the path and you should be fine.

Stefan
Reply all
Reply to author
Forward
0 new messages