在 Mercurial 版本控制下移动 Eclipse 中的项目源目录
我希望在这里问而不是超级用户可以,因为对于像这样的非常具体的问题,我在那里得到的答复很少。
我有一个受 Mercurial 修订控制的项目,我想将其移动到我的计算机上的位置(从 ~/workspace 到 ~/Dropbox/Projects)。但是,如果我移动该项目然后重新导入它,它就会失去反复无常的连接。
我可以提交、推送、删除我的项目,然后从新目录中的 hg 重新导入。但一定有更简单的方法,不是吗?
I hope this is OK to ask here instead of superuser since I get very little response there to very specific questions like this.
I have a project that's under mercurial revision control and I'd like to move where it is located on my computer (from ~/workspace to ~/Dropbox/Projects). But if I move the project and then re-import it, it loses the mercurial connection.
I can just commit, push, delete my project, and re-import from hg in the new directory. But there has to be an easier way, no?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不太了解 Mercurial,但对于某些版本控制系统,移动已签出的代码副本非常困难(某些 VCS 使用绝对路径保存元数据等)。所以我会亲自提交并重新获取。
另外,请考虑在搬迁过程中丢失未提交的工作的可能性......
I don't know specifically about Mercurial, but with some version control systems, moving a checked out copy of the code is very hard (some VCS keep metadata with absolute paths, etc.). So I would commit and re-fetch, personally.
Also, consider the possibility of losing that uncommitted work during the move...
当您移动项目时,您能否确认 .hg 子文件夹(保存存储库数据)是否也移动了?
是否可以使用命令行或不同的 Mercurial(例如 TortoiseHg)客户端访问移动的存储库?
在 Eclipse 中,当您再次执行“Team -> Share Project...”时会发生什么?
When you move the project, can you confirm if the .hg subfolder (which holds the repository data) moved as well?
Is the moved repository accessible using a command-line or a different mercurial (say TortoiseHg) client?
In Eclipse, what happens when you do "Team -> Share Project..." again?