MercurialEclipse 重命名
我选择 Mercurial 作为存储库。项目的根目录是/Myproject
,包含文件夹/MyProject/src
和/MyProject/res
;现在我想在存储库中添加重命名文件夹以创建另一个层次结构:
/MyProject/Server/src
/MyProject/Server/res
/MyProject/Client/a
/MyProject/Client/b
如何在 MercurialEclipse 插件中执行此操作,而不在终端中使用 hg rename 命令?
I choose Mercurial as repo. The root of the project is /Myproject
and contains folders /MyProject/src
, and /MyProject/res
; Now I want to add rename folders in the repository to create another hierarchy:
/MyProject/Server/src
/MyProject/Server/res
/MyProject/Client/a
/MyProject/Client/b
How can I do this in MercurialEclipse plugin, without using hg rename commands in terminal?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
从命令行来看:
大概您也可以在 MercurialEclipse 中做到这一点,但也许是时候把 GUI 拐杖扔到一边了。
From the command line that's:
presumably you can do that in MercurialEclipse too, but maybe it's time to toss the GUI crutches to the side.
您只需执行重构/重命名(从文件的上下文菜单中重构->重命名,或 Alt+Shift+R / ⌘+选项+R)。 MercurialEclipse 将自动安排相关更改(删除旧文件并添加新文件)。
You can just do a Refactor/Rename (Refactor->Rename from a file's context menu, or Alt+Shift+R / ⌘+option+R). MercurialEclipse will automatically schedule the relevant changes (removing the old file and adding the new one).