如果您无权访问 svn 服务器,有没有办法移动 svn 存储库?
我一直在查看有关如何移动存储库的信息,如果您有权访问托管存储库的服务器,但如果您只有存储库的登录信息怎么办?
您能否对存储库及其所有修订进行完整检出,然后将其移至另一个存储库?
原因是因为我已经接管了一个项目,但尽管我有登录凭据,但无法访问 svn 服务器。
I have been seeing information on how to move a repository if you have access to the server the repository is hosted on but what if you only have the login information for the repository?
Can you do a full checkout of a repository and all of its revisions and then move it to another repository?
The reason for this is because I have taken over a project but don't have access to the svn server although I have login credentials.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我之前使用 rsvndump 转储完整的 SVN 存储库,但我没有服务器访问权限。这需要一段时间,但效果很好。然后可以使用 svnadmin 将生成的 SVN 转储加载到不同的存储库(包括本地存储库,然后使用 svnsync 同步到远程存储库,例如 Google Code)。
如果您打算稍后迁移到 git (我根据您的 git 标签猜测这一点),那么您不需要做得那么复杂。然后,您可以使用 git svn 克隆存储库,然后将您获得的 git 存储库推送到其他服务器。然后所有信息都已经存在(
git svn clone
也获取整个 SVN 存储库)。I have used rsvndump before to dump a complete SVN repository, I didn't have server access to. It takes a while but works quite well. The resulting SVN dump can then be loaded to a different repository using
svnadmin
(inlcuding a local repository which is then synced to a remote repository usingsvnsync
, e.g. Google Code).If you plan to migrate to git later on (I'm guessing this based on your git tag), then you don't need to do it that complicated though. You can just
svn clone
the repository with git then, and push the git repository you got to some other server. Then all the information is already there (git svn clone
does fetch the whole SVN repository too).我想这就是您正在寻找的
http://rsvndump.sourceforge.net/
http ://dukeslittleb.wordpress.com/2010/03/15/how-to-migrate-an-svn-repository-without-shell-access-to-the-existing-repository/
http://blog.sourcehosting.net/2008/11/03/dump-remote -subversion-存储库/
I guess this is what you are looking for
http://rsvndump.sourceforge.net/
http://dukeslittleb.wordpress.com/2010/03/15/how-to-migrate-an-svn-repository-without-shell-access-to-the-existing-repository/
http://blog.sourcehosting.net/2008/11/03/dump-remote-subversion-repository/
您可以使用 执行此操作
svnsync
。只需将远程存储库同步到本地存储库即可。You can do this with
svnsync
. Just sync the remote repository to a local one.您需要文件历史记录吗?
我打赌你不会(我确信有人会说他们认为他们会这样做 - 但即便如此我怀疑他们会这样做)
因此,可以节省大量时间(和磁盘空间),只需同步到磁头并进行检查即可。
(如果他们想要历史记录,请确保您仍然可以访问 ~ 6 个月)
保持简单......
Do you need the file history?
I bet you wont (im sure someone will say they think they do - but even then i doubt they do)
So save yourself a load of time (and disk space) and just sync to the head an check that in.
(If they want the history make sure you still have access ~ 6 months)
Keep it simple....