将Subversion存储库转换为Mercurial [英] Convert Subversion repository to Mercurial
问题描述
我正在尝试将SVN存储库转换为Mercurial,但遇到了一些麻烦.这些是我已采取的步骤:(我在Windows上)
I am trying to convert an SVN repository to Mercurial, but I'm having some troubles. These are the steps I've taken: (I am on Windows)
在扩展程序中启用转换"
Turned on "convert" in the extensions
打开命令窗口,然后键入:
Opened a command window, and typed:
hg convert http://myversioncontrorepositoryhere
它表示正在初始化目标文件夹,然后询问:
It says it's initializing the destination folder and then asks:
Enter username for Administration at http://myversioncontrorepositoryhere:
然后输入我的用户名
in Administration at http://myversioncontrorepositoryhere:
我以为这是我的密码,但是它只是循环回到
I assume this is my password, but it just loops back to
Enter username for Administration at http://myversioncontrorepositoryhere:
我做错了什么?我非常确定自己输入的用户名和密码正确无误.
What am I doing wrong? I'm very sure I'm typing in my username and password correctly.
推荐答案
我不知道可能会出什么问题,但是我想提出一种解决方法(这是我个人用于此目的的唯一方法任务!):首先 svnsync 到svn项目制作一个本地镜像,然后hg convert
那个本地镜像-这就是O'Sullivan在他的书(此URL作为书中的示例",是从其他VCS导入项目到hg的相关附录,特别是svn!),建议主要是出于对速度的考虑,我怀疑遵循此建议也免除了我的身份验证和授权麻烦,我希望它可以为您做同样的事情!-)
I don't know what may be going wrong, but I'd like to suggest a workaround (which is the only way I've personally used for this task!): first svnsync the svn project to make a local mirror, then hg convert
that local mirror -- that's what O'Sullivan suggests in his book (this URL has, as "sample from the book", exactly the relevant appendix for importing projects from other VCSs to hg -- with special emphasis on svn!), though his suggestion is mostly inspired by considerations of speed I suspect that following it has also saved me authentication and authorization hassles, and I hope it could do the same for you!-)
这篇关于将Subversion存储库转换为Mercurial的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!