Reputation: 189686
I want to do
svn mkdir http://svn.mydomain.com/.../projectX/trunk
svn mkdir http://svn.mydomain.com/.../projectX/branches
svn mkdir http://svn.mydomain.com/.../projectX/tags
svn propset someprop someval http://svn.mydomain.com/.../projectX
svn propset anotherprop anotherval http://svn.mydomain.com/.../projectX
in a single commit. Is there a way to batch up svn operations on the repository server? I could swear I've seen a way to do this before, but I can't remember the magic words to use or to google.
Upvotes: 2
Views: 2548
Reputation: 29715
you can create multiple directories in a single commit:
svn mkdir -m "a single commit" /path/to/folder_1 /path/to/folder_2
However, you cannot propset directories in the same commit :-(
You can also use svnmucc to combine repository actions in a single commit, however also here you cannot propset directories which are not already inside the repository.
So you can minimize the number of commits to 2 (I left out the -m switch for the log message):
svn mkdir http://svn.mydomain.com/.../projectX/trunk http://svn.mydomain.com/.../projectX/branches http://svn.mydomain.com/.../projectX/tags
svnmucc propset someprop someval http://svn.mydomain.com/.../projectX propset anotherprop anotherval http://svn.mydomain.com/.../projectX
If you still want a single commit, you have to check out a working copy and do all manipulations and commit afterwards
Upvotes: 6
Reputation: 27370
You could always svn checkout
the projectX directory, mkdir
trunk/branches/tags locally then svn add
them (or just use svn mkdir
locally rather than on the URL, which does the same thing), set the properties and then issue a single svn commit
.
Upvotes: 7
Reputation: 10864
This is probably not the answer you're looking for, but if you were to check out your root directory to a working copy, then executed svn mkdir trunk
, svn mkdir branches
, svn mkdir tags
, and then did your svn commit
then those directory creations would be batched.
Upvotes: 1