Netbeans Mercurial plugin doesn't have addremove option in GUI menus

淺唱寂寞╮ 提交于 2019-12-11 23:54:01

问题


I use Netbeans for development and have been doing my Mercurial operations on the command line even though Netbeans has a Mercurial plugin to add various Mercurial commands as GUI options.

One of the things I always do when I add or delete a file is run

hg addremove

But the Netbeans Mercurial plugin doesn't offer this as an option. The only operations it offers are:

Status
Diff
Commit
----
Resolve Conflicts
----
Show History
----
Revert
----
Mercurial Settings

So my question is whether it is necessary to run

hg addremove

I just tried deleting a file and then did

hg commit -m

and after I did a

hg status

everything seemed to be good - no output. So it seemed to delete the file without needing to run the addremove command.

I'm a little confused whether this plugin covers most of the features I will need or whether I should stick with the command line interface.


回答1:


As long as you do everything through the NetBeans GUI, you won't need addremove.

When you add a new file, Netbeans automatically calls 'hg add filename". Likewise, deleting a file calls "hg rm" and renaming a file calls "hg move".

The only time you need addremove is if you add, delete, or move files outsize of NetBeans.

Be very careful editing files in the nbproject directory. I had the experience of editing project.properties and then making a change in NetBeans that caused it to regenerate the file. The mercurial command it issued was:

hg move nbproject/project.properties nbproject/project.properties~

So, the result was:

hg stat
A nbproject/project.properties~
R nbproject/project.properties

Thank goodness for "hg revert".



来源:https://stackoverflow.com/questions/1626942/netbeans-mercurial-plugin-doesnt-have-addremove-option-in-gui-menus

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!