Can I have one project in two SVN repositories?

后端 未结 12 1301
野性不改
野性不改 2020-12-10 07:03

Our I.T. dept doesn\'t allow connections to the SVN server from outside the physical office. (They\'re just kind of like that.) I need to work on projects when I\'m not at t

12条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-10 08:00

    I made a blog post about how to do something similar recently. I think this will work for you, except you will need to sync from your work place, unless you can tunnel through via ssh.

    http://justinsboringpage.blogspot.com/2008/11/how-to-copy-svn-repository-from.html

    Subversion has a tool called SVNSYNC to make it easy to sync from one repository to another. This is great when moving to a different web based server. In this example I'm copying a project I work on from Sourceforge to Google Code. Once done, the google code repository will be an exact mirror, including the complete change history.

    You also need to set the revision number of the repository to zero. Google code, predictably, makes this easy, by having a button on the source page to do it for you.

    You need to have your username and password for google code to do this. For the repository you're copying you don't. First you use the initial command to set things up for the copy, then use the sync command to do the actual copy. It does this one revision at a time and takes a while...

    svnsync init https://lispbuilder.googlecode.com/svn https://lispbuilder.svn.sourceforge.net/svnroot/lispbuilderProject svnsync --username YOURNAME --password YOURPASSWORD sync https://lispbuilder.googlecode.com/svn https://lispbuilder.svn.sourceforge.net/svnroot/lispbuilder

提交回复
热议问题