Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I not display the dialog on SVN Tortoise Commit?

Tags:

tortoisesvn

I have a process that modifies some files and I would like to commit them via command line tortoise SVN without having to click ok. The dialog comes up and my script is forced to wait until I click ok. Here are the arguments I am using:

TortoiseProc.exe /command:commit /path:"c:\svn\MyProject" /notempfile /logmsg:"Files Modified 2010-02-12" /closeonend:3
like image 770
Greg Finzer Avatar asked Feb 12 '10 15:02

Greg Finzer


People also ask

How do I disable TortoiseSVN?

How do I uninstall TortoiseSVN? Simply uninstall from Add/Remove Programs in the Windows control panel. This does not affect your repositories or working copies at all.

How do I ignore bin and obj folder in svn?

To set your global ignore pattern (with TortoiseSVN) right click Windows Explorer –> TortoiseSVN –> Settings. Once you click on settings enter your global ignore pattern. I'm blocking everything in my bin folder, obj folder, anything that may have been named *.

How do I commit in TortoiseSVN?

Select any file and/or folders you want to commit, then TortoiseSVN → Commit.... The commit dialog will show you every changed file, including added, deleted and unversioned files. If you don't want a changed file to be committed, just uncheck that file.

How do I change my TortoiseSVN author?

Ask TSVN to "show log", in the change log order all commits by author, then select all the commits by the author of interest and use "Edit author".


2 Answers

Like @bmargulies said, just use svn.exe:

cd "c:\svn\MyProject"
svn commit -m "Files Modified 2010-02-12"

You cannot hide the TortoiseProc.exe dialog on commit:

Important

Remember that TortoiseSVN is a GUI client, and this automation guide shows you how to make the TortoiseSVN dialogs appear to collect user input. If you want to write a script which requires no input, you should use the official Subversion command line client instead.

(from http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-automation.html)

If you're relying on TortoiseProc's /closeonend:3 behavior to alert you when there's an error, conflict, or merge, you'll need to switch on SVN's exit codes.
I couldn't find a list of return code values beyond "0 is success, not 0 is error" in a quick Google search, though.

like image 66
mskfisher Avatar answered Jan 03 '23 02:01

mskfisher


I recommend using svn.exe instead of TortoiseProc.exe. It will be much easier.

like image 25
bmargulies Avatar answered Jan 03 '23 01:01

bmargulies