开发者

MercurialEclipse rename

开发者 https://www.devze.com 2023-03-12 07:47 出处:网络
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 hierarch

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?


From the command line that's:

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

presumably you can do that in MercurialEclipse too, but maybe it's time to toss the GUI crutches to the side.


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).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号