0

我选择 Mercurial 作为回购。项目的根目录是/Myproject并包含文件夹/MyProject/src, 和/MyProject/res; 现在我想在存储库中添加重命名文件夹以创建另一个层次结构:

/MyProject/Server/src
/MyProject/Server/res
/MyProject/Client/a
/MyProject/Client/b

如何在 MercurialEclipse 插件中执行此操作,而不在终端中使用 hg 重命名命令?

4

2 回答 2

2

从命令行是:

hg rename src Server/src
hg rename red Server/res
hg commit -m 'moved res and src into Server'

大概您也可以在 MercurialEclipse 中做到这一点,但也许是时候将 GUI 拐杖扔到一边了。

于 2011-06-11T16:09:59.650 回答
1

您可以只进行重构/重命名(从文件的上下文菜单中重构->重命名,或Alt+ Shift+ R/⌘</kbd>+option+R). MercurialEclipse will automatically schedule the relevant changes (removing the old file and adding the new one).

于 2017-11-10T22:12:09.377 回答