开发者

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.

Curre开发者_如何学JAVAntly, 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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜