移动 Mercurial 存储库
我在 someFolder
中创建并使用了 Mercurial 存储库。现在我发现需要跟踪上一级的文件。所以我需要创建 someOtherFolder
并将 someFolder
移入其中。这应该没有问题。
此时我将有
someOtherFolder
someFolder
.hg
many other files
是否有办法告诉 Mercurial 扩大其范围并开始跟踪 someOtherFolder
内的文件?
I have created and used a Mercurial repository in someFolder
. Now I have discovered the need to keep track of files one level up. So what I would need is to create someOtherFolder
and move someFolder
into it. This should be no problem.
At this point I will have
someOtherFolder
someFolder
.hg
many other files
Is there a way to tell Mercurial to broaden its scope and start keeping track of files inside someOtherFolder
instead?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您应该能够使用 hg 转换扩展 来执行此操作。
我没有对此进行测试,但类似的方法可能会起作用:
You should be able to use hg convert extension to do this.
I didn't test this, but something like this may work :
可能有更好的方法来做到这一点,但您可以做的一件事是将所有文件
hg mv
复制到新的子目录someFolder
中,然后重命名父目录someFolder< /code> 到
someOtherFolder
,例如:There's probably a nicer way to do this, but one thing you could do is
hg mv
all the files to a new subdirectorysomeFolder
and then rename the parentsomeFolder
tosomeOtherFolder
, e.g.: