I want to create a command file that will update my SVN. I have two different path.
I have a code below that will update two unique directory. Is there a way to do it in a single line of code?
@echo off
cd C:\Program Files\TortoiseSVN\bin\
start TortoiseProc.exe /command:update /path:"C:\Files\SVN Repository\_Testing" /closeonend:0
start TortoiseProc.exe /command:update /path:"C:\Files\SVN Repository\_UAT" /closeonend:0
I want it to look like this: http://i.stack.imgur.com/1sfC3.jpg
Thanks in advance!
To update, select the files and/or directories you want, right click and select TortoiseSVN → Update in the explorer context menu. A window will pop up displaying the progress of the update as it runs. Changes done by others will be merged into your files, keeping any changes you may have done to the same files.
The SVN update Command. The svn update command lets you refresh your locally checked out repository with any changes in the repository HEAD on the server. It also tells you what has been changed, added, deleted. If a change has been made to a file you have also changed locally, svn will try to merge those changes.
Click on the new working copy and right click to select the repository browser (TortoiseSVN -> Repo-browser) Right click the file of choice in the repository browser and select "Update item to revision"
Commit uploads your changes on the CVS / SVN server, and Update overwrites the files on your localhost with the ones on the server.
From the documentation:
Since some of the commands can take a list of target paths (e.g. committing several specific files) the
/path
parameter can take several paths, separated by a*
character.
One of the examples at the end of the page demonstrates this:
TortoiseProc.exe /command:commit /path:"c:\svn_wc\file1.txt*c:\svn_wc\file2.txt" /logmsg:"test log message" /closeonend:0
So you should put both paths together separated by a *
. Try:
start TortoiseProc.exe /command:update /path:"C:\Files\SVN Repository\_Testing*C:\Files\SVN Repository\_UAT" /closeonend:0
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With