How to automate "Revert to this revision"

14 views
Skip to first unread message

Heinz Dresbach

unread,
Apr 28, 2023, 3:29:35 AM4/28/23
to TortoiseSVN
Hi all, 

the "revert to this revision" option does some wonderful magic for us.
I would like to automate it in a batch, but I cannot figure out what it really does - "svn revert" does not take a revision parameter.

I know I can open the dialogue with the TortoiseSVNProc.exe, but I need to run it from commandline.

Many thanks in advance, and especially many, many thanks to Stefan Kueng and all the other developers ! 

Daniel Sahlberg

unread,
Apr 28, 2023, 4:57:00 AM4/28/23
to TortoiseSVN
fredag 28 april 2023 kl. 09:29:35 UTC+2 skrev dresbac...@gmail.com:
Hi all, 

the "revert to this revision" option does some wonderful magic for us.
I would like to automate it in a batch, but I cannot figure out what it really does - "svn revert" does not take a revision parameter.

There is a bit of confusion in the terminology. The svn command "revert" will undo local changes in your working copy, restoring a file as it was in the repository. The "revert to this revision" is actually a reverse merge, you should be able to do something along the lines of:

svn merge -r HEAD:29544 .


Kind regards,
Daniel Sahlberg 
Reply all
Reply to author
Forward
0 new messages