本文介绍了Netbeans Mercurial插件在GUI菜单中没有addremove选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Netbeans进行开发,并且即使Netbeans具有Mercurial插件来添加各种Mercurial命令作为GUI选项,我也一直在命令行上执行Mercurial操作.

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

但是Netbeans Mercurial插件不提供此选项.它提供的唯一操作是:

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

然后我做了

hg status

一切似乎都很好-没有输出.因此,似乎无需运行addremove命令即可删除文件.

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

我对这个插件是否涵盖了我需要的大多数功能还是应该坚持使用命令行界面感到有些困惑.

推荐答案

只要您通过NetBeans GUI进行所有操作,就不需要addremove.

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

添加新文件时,Netbeans会自动调用"hg add 文件名".同样,删除文件时会调用"hg rm",重命名文件时会调用"hg move".

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

唯一需要添加删除的时间是添加,删除或移动NetBeans以外的文件.

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

要非常小心地编辑nbproject目录中的文件.我有编辑project.properties的经验,然后在NetBeans中进行了更改,使它重新生成文件.它发出的Mercurial命令是:

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~

因此,结果是:

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

感谢汞还原".

这篇关于Netbeans Mercurial插件在GUI菜单中没有addremove选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 17:23