Reputation: 47
I use TortoiseSVN as my version control tool. I recently created a command line to commit changed files to the SVN repository.
My repository is located here: file:///F:/SVNRepository/TortoiseSVN
My source code file is located here: C:\Users\userid\Documents\ActiveDocuments\PSScripts\
If I go to Windows Explorer and right click on the file I see the following, which is correct:
However, if I run the TortoiseSVN command I see the following:
Notice how the Commit To: says (multiple targets selected) and you see a duplicate of all the files.
I searched for hours now and can't seem to find out how to have the TortoiseSVN Commit Command show correctly.
Here is how I coded the command:
'C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe' '/command:commit' '/path:"C:\Users\zrmfld\Documents\ActiveDocuments\PSScripts\*.*"'
Here is the result of the svn info
command:
C:\Users\zrmfld\Documents\ActiveDocuments\PSScripts\TortoiseSVN>svn info
Path: .
Working Copy Root Path: C:\Users\zrmfld\Documents\ActiveDocuments\PSScripts
URL: file:///F:/SVNRepository/TortoiseSVN
Relative URL: ^/TortoiseSVN
Repository Root: file:///F:/SVNRepository
Repository UUID: fd12eeda-107f-5d40-bebd-932aaf916f88
Revision: 11
Node Kind: directory
Schedule: normal
Last Changed Author: zrmfld
Last Changed Rev: 11
Last Changed Date: 2015-10-20 13:31:07 -0400 (Tue, 20 Oct 2015)
Upvotes: 1
Views: 1733
Reputation: 97375
:commit
command "...The /path specifies the target directory or the list of files to commit...", i.e "all (changed versioned) files in dir" may be just/path:"C:\Users\zrmfld\Documents\ActiveDocuments\PSScripts\"
C:\Program Files\TortoiseSVN\bin\
usually added to PATH, TortoiseProc can be called from any location, thus: you can in script have smth. more readable likecd C:\Users\zrmfld\Documents\ActiveDocuments\PSScripts TortoiseProc.exe /command:commit /path:"." ...
Last but not least:
Easy and good automation of SVN-activities assumes using of fully non-interactive CLI-tools, which you can have as part of TortoiseSVN installation: easy and transparent syntax, no dialogues|windows, read svn help commit
Upvotes: 2