Automating TortoiseSVN

Sometimes it’s useful to show another engineer some changes. Seeing this in a GUI is often the easiest format. Should you use the command-line SVN (Subversion) client, or the T-SVN (TortoiseSVN) GUI?

Neither! Use the command-line interface to T-SVN.

For example, for changes made to project “http://repos/project/trunk/” at revision 1234, use:

start TortoiseProc.exe /command:diff
    /startrev:1233 /endrev:1234

and for the changes made between releases 1.22 and 1.23 (perhaps to help the author of the release notes):

start TortoiseProc.exe /command:showcompare
    /url1:"http://repos/project/tags/v1_22" /revision1:HEAD
    /url2:"http://repos/project/tags/v1_23" /revision2:HEAD

The “start” is just to run the command in a separate window (process).


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: