Re: Tortoiseproc update with pathfile works, commit does not

2023-04-11 Thread Stefan via 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

-- 
You received this message because you are subscribed to the Google Groups 
"TortoiseSVN" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tortoisesvn+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tortoisesvn/00a4d1b6-5d92-4947-b9aa-7bee61435b15n%40googlegroups.com.


Re: Tortoiseproc update with pathfile works, commit does not

2023-04-07 Thread Neil Peers via 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 



On Thursday, 6 April 2023 at 16:39:25 UTC+1 Stefan wrote:

> 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  " is not under 
> version control"
>
> If I try a single line commit  using  /path:""  it does work.
>
>  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.
>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"TortoiseSVN" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tortoisesvn+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tortoisesvn/daaadca4-f98b-44db-baf1-b705e4332765n%40googlegroups.com.


CommitNotWorking.pdf
Description: Adobe PDF document


Re: Tortoiseproc update with pathfile works, commit does not

2023-04-06 Thread Stefan via 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  " is not under 
version control"

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

 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.
 

-- 
You received this message because you are subscribed to the Google Groups 
"TortoiseSVN" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tortoisesvn+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tortoisesvn/c858aab0-e198-407b-ac21-b65dfaf71e11n%40googlegroups.com.


Re: Tortoiseproc update with pathfile works, commit does not

2023-04-06 Thread 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: image.png]



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

0771 737 5917
www.medina-electronics.co.uk
Company Registration Nos. 13912894


On Thu, 6 Apr 2023 at 14:49, Daniel Sahlberg via TortoiseSVN <
tortoisesvn@googlegroups.com> wrote:

> torsdag 6 april 2023 kl. 14:05:00 UTC+2 skrev
> ne...@medina-electronics.co.uk:
>
> 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  " is not under
> version control"
>
> If I try a single line commit  using  /path:""  it does work.
>
>  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?
>
>
> 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
>
>
> [1]
> https://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-automation.html#tsvn-automation-basics
>
>
>
>
>
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tortoisesvn/0504e9e5-5fde-4a03-8ba0-c791ea194b77n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"TortoiseSVN" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tortoisesvn+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tortoisesvn/CAA8-Lm8wBESAcWCChLOw5K7o_dJ_n3Y-zNWBotDAqkC51e0XQQ%40mail.gmail.com.
C:\MEDC\CorporateDocs\trunk\
C:\AltiumSetUp\3D-Models\trunk\
C:\AltiumSetUp\AltiumLibraries\trunk\
C:\AltiumSetUp\AltiumPreferences\trunk\
C:\AltiumSetUp\AltiumTemplates\trunk\
C:\AltiumSetUp\Datasheets\trunk\
C:\AltiumSetUp\PCBLibraries\trunk\
Tortoiseproc.exe /command:update 
/pathfile:"C:\users\neilp\PathToFilesForTortoise.txt" /closeonend:2Tortoiseproc.exe /command:commit 
/pathfile:"C:\users\neilp\PathToFilesForTortoise.txt" /closeonend:2

Re: Tortoiseproc update with pathfile works, commit does not

2023-04-06 Thread Daniel Sahlberg via TortoiseSVN
torsdag 6 april 2023 kl. 14:05:00 UTC+2 skrev 
ne...@medina-electronics.co.uk:

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  " is not under 
version control"

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

 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?


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


[1] 
https://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-automation.html#tsvn-automation-basics




 

-- 
You received this message because you are subscribed to the Google Groups 
"TortoiseSVN" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tortoisesvn+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tortoisesvn/0504e9e5-5fde-4a03-8ba0-c791ea194b77n%40googlegroups.com.


Tortoiseproc update with pathfile works, commit does not

2023-04-06 Thread Neil Peers via 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  " is not under 
version control"

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

 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


-- 
You received this message because you are subscribed to the Google Groups 
"TortoiseSVN" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tortoisesvn+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tortoisesvn/8a10bbd6-2e27-4132-a5a2-3c983d52d024n%40googlegroups.com.