我如何判断“hg Convert”是否真的在做任何事情?
我在 Win32(服务器 03)上使用 Mercurial。我想将本地驱动器上的 Subversion 存储库复制到本地驱动器上的 Mercurial 存储库,以便测试 Mercurial 与 Subversion 的合并能力。
hg Convert
是正确的命令吗?
我这样做后: "c:\Program Files\TortoiseHg\hg.exe" Convert c:\dev\SubversionRepo\MyRepo -r 123456 -s svn c:\devhg\MyRepo_123456
我收到一条消息:
8 Created MyRepo branch again as a copy from http://.../Branches/SourceRepo.
There was another MyRepo branch in this same location that was deleted.
现在可以我很紧张。此位置的分支已被删除?不,我不想删除分支。
现在转换命令似乎停滞了。除基本 .hg
文件夹之外,在 c:\devhg\MyRepo_123456
中没有创建任何文件。我这样做错了吗?
I'm using Mercurial on Win32 (Server 03). I'd like to copy a Subversion repo on my local drive to a Mercurial repo on my local drive so that I can test the merging abilities of mercurial vs subversion.
Is hg convert
the right command to use?
After I do this:"c:\Program Files\TortoiseHg\hg.exe" convert c:\dev\SubversionRepo\MyRepo -r 123456 -s svn c:\devhg\MyRepo_123456
I get a message that says:
8 Created MyRepo branch again as a copy from http://.../Branches/SourceRepo.
There was another MyRepo branch in this same location that was deleted.
OK now I'm nervous. Branch in this location that was deleted? Nooo I don't want to be deleting branches.
And now the convert command seems stalled. There are no files being created in c:\devhg\MyRepo_123456
beyond the basic .hg
folder. Am I doing this wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该使用“--debug”开关来查看发生了什么。
您应该了解
hg Convert
可能会花费很长时间处理第一个条目。线上的数字表示还有多少事情要做。如果这个数字是 600,那么您就需要等待了。数字旁边的每一行都是该提交的注释,而不是来自
hg Convert
命令的任何状态消息。hg Convert
仅生成存储库的一组更改,而不是任何实际文件。因此几乎所有输出都将位于.hg
文件夹中。删除所有内容并仅使用一次“hg Convert”,重新开始。这将创建一个 Mercurial 存储库,您可以使用该存储库进行工作、进行更改,然后将更改推送到 subversion 存储库。
参考:
you should use '--debug' switch to see what's happening.
you should understand that
hg convert
can spend a long time working on that first entry. The number on the line is how many more it has to do. If that number is 600, well you got a wait ahead of you.each line next to the number is the comment for that commit, not any sort of status message from the
hg convert
command.hg convert
only produces the set of changes for the repository, not any actual files. So almost all of the output will be in the.hg
folder.Do a fresh start by removing every thing and use "hg convert" only once. This creates a mercurial repo that you can work from, make changes and then push the changes to subversion repo.
Reference: