2

I'm in the process of moving my SVN repository from one server to another. As part of this process, I have a number of client PCs running TortoiseSVN that currently point to the old location which need to be updated for the new path. Not all of these are under my direct control, so I would like to create a small batch script to do the work for me.

As I understand it, SVN allows for a Unix-like implementation of the relocate as shown below.

svn switch --relocate From_URL To_URL

I'm not aware of how to perform this action using TortoiseSVN under Windows. The closest I can find uses the /command:relocate switch.

TortoiseProc.exe /command:relocate /path:File_Path

This is a start, but it still prompts the end user to enter the new server path, which is something I would really like to avoid.

Is there a way to specify the new server name as an argument to TortoiseProc.exe?

4

1 回答 1

0

如果我没记错的话,svn(命令行客户端)包含在 TortoiseSVN 二进制发行版中,所以你应该可以用一个简单的批处理文件来做

svn switch --relocate
于 2012-04-23T16:03:01.537 回答