usr-local-ΕΨΗΕΛΩΝ
usr-local-ΕΨΗΕΛΩΝ

Reputation: 26874

Tagging and recursively create new folders with SVN via commandline

I have the need of automating SVN nightly tags using a Windows batch file and CLI SVN.

Currently, using Tortoise as GUI, I found that when I need to tag several projects into a newly created folder (with a specific structure) I have to first create all the directory tree and tag each project into it. I found that Subclipse, fortunately, is able not only to tag multiple projects at the same time (possibly firing multiple copy commands), but also to create any missing folder.

Is there a way to do the same with CLI client? Ie. some known switch to add to the command? If not, how to create a directory on the remote repository?

Thank you.

Upvotes: 0

Views: 897

Answers (1)

gbjbaanb
gbjbaanb

Reputation: 52679

svn add --depth=infinity --force *

should add everything in a subdir. You then commit. Easy as that.

If you want to do this directly to a remote repo, you're stuck. Whilst you can create a new directory to the repository directly, there's no way to batch several such creates in a transaction. If you need to do this, really, the answer is to use your working copy as a temp area and then commit everything in 1 go.

If you are using a repo over http then you could try to sniff the network, or see the server log to see what commands were executed by subclipse.

Upvotes: 1

Related Questions