TortoiseSVN error when using revert command with "pathfile" option

48 views
Skip to first unread message

ba an Nguyen

unread,
Aug 24, 2023, 5:52:59 AM8/24/23
to TortoiseSVN
Hello everyone,
I'm using TortoiseSVN 1.14.5, Build 29465 - 64 Bit and trying to run a TortoiseProc revert command with pathlist as below:
Tortoiseproc.exe /command:revert /pathfile:"C:\An_Nguyen\revertpath.txt"

and inside my revertpath.txt is:

C:\An_Nguyen\SVNTest\analog
C:\An_Nguyen\SVNTest\analog\1%.discharge
C:\An_Nguyen\SVNTest\analog\1%.discharge.o
C:\An_Nguyen\SVNTest\analog\1%board_presence
C:\An_Nguyen\SVNTest\analog\1%board_presence.o
C:\An_Nguyen\SVNTest\analog\1%board_presence_1
C:\An_Nguyen\SVNTest\analog\1%board_presence_1.o
C:\An_Nguyen\SVNTest\analog\1%board_presence_sensor
C:\An_Nguyen\SVNTest\analog\1%board_presence_sensor.o
C:\An_Nguyen\SVNTest\analog\1%bt1
C:\An_Nguyen\SVNTest\analog\1%bt1.o
C:\An_Nguyen\SVNTest\analog\1%c1

when I ran it still can show revert dialog with all files listed same the pathfile but after I click OK it show me an error:

'C:\Users\2203258\AppData\Local\Temp' is not a working copy

but actually, my working copy is "C:\An_Nguyen\SVNTest"

I ran with the option "-path:" and input all files there it worked.

Can you advise if i did wrong some where. Thank you so much.

Daniel Sahlberg

unread,
Aug 24, 2023, 6:11:42 AM8/24/23
to TortoiseSVN
In another post [1] someone else had similar problems and it turned out there were blank lines in the pathfile. Please check this and remove any blank lines.

If this doesn't help, can you attach the file (c:\an_nguyen\revertpath.txt)?

Kind regards,
Daniel

ba an Nguyen

unread,
Aug 24, 2023, 11:31:47 AM8/24/23
to TortoiseSVN
Thank you Daniel,
But it still error. Please see attached  c:\an_nguyen\revertpath.txt file and error pictures.
screenshot_1692890793.png
 screenshot_1692890964.png

Vào lúc 17:11:42 UTC+7 ngày Thứ Năm, 24 tháng 8, 2023, daniel.l...@gmail.com đã viết:
revertpath.txt
screenshot_1692890793.png

Stefan

unread,
Aug 24, 2023, 11:35:00 AM8/24/23
to TortoiseSVN
remove the BOM in the revertpath.txt file. As stated in the docs:
that file must not have a BOM.

ba an Nguyen

unread,
Aug 24, 2023, 11:46:14 PM8/24/23
to TortoiseSVN
Yes, after removing BOM it worked.
Thank Stefan and Daniel so much for your support.

Vào lúc 22:35:00 UTC+7 ngày Thứ Năm, 24 tháng 8, 2023, Stefan đã viết:
Reply all
Reply to author
Forward
0 new messages