Launch TortoiseSVN command for more multiple paths simultaneously

0

Situation

I have a development project with the following repository structure:

root/
 + core/
      + branches/
      + tags/
      + trunk/
 + module/
      + branches/
      + tags/
      + trunk/

How can I commit core/trunk/ and module/trunk/ together in one TortoiseSVN commit dialog?

Limiting Factors / Notice

  • Unfortunately -- don't ask ;) -- the working copy is not sparse i.e. branches/, tags/ have been checked out completely. They require quite a while to scan, if launching a TortoiseSVN operation from the context menu of root/.
  • Although I favour atomic commits, commits sometimes require (in my opinion) a cross-directory commit.
  • I want to launch it from e.g. a batch file (Press Win+R, type/select myCommit.cmd, Enter).

First steps

I already found out from StackOverflow: How to automate a commit in TortoiseSVN that TortoiseSVN might be called like that:

TortoiseProc.exe /command:commit /path:"A:\path\to\root"

tl;dr

(How) can I pass multiple paths to TortoiseProc.exe /command:abcd /path:"more\paths"?

fheub

Posted 2014-08-28T14:17:11.273

Reputation: 176

Answers

1

StackOverflow: how to pass parameters to tortoiseproc.exe via file indicates that paths can be passed as *-separated list:

TortoiseProc.exe /command:commit /path:"A:\path\to\root\core\trunk*A:\path\to\root\module\trunk"

fheub

Posted 2014-08-28T14:17:11.273

Reputation: 176

1

Also documented at http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-automation.html as: 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.

– ssnobody – 2014-08-28T17:08:25.567

@ssnobody Oops, I have not spotted that on reading the documentation. (But maybe * just looks to much like a globbing wildcard when dealing with paths, doesn't it?) – fheub – 2014-08-29T10:13:57.473