Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TortoiseSVN: How to update multiple directory in a single window

Tags:

tortoisesvn

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!

like image 420
Kei Avatar asked Oct 10 '14 08:10

Kei


People also ask

How do I update my TortoiseSVN repository?

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.

How do I change svn directory?

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.

How do I edit a TortoiseSVN file?

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"

What is the difference between commit and update in svn?

Commit uploads your changes on the CVS / SVN server, and Update overwrites the files on your localhost with the ones on the server.


Video Answer


1 Answers

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
like image 184
lc. Avatar answered Oct 14 '22 18:10

lc.