可以清除Mercurial合并工具INI列表吗? 避免出现“找不到合并工具”垃圾邮件

问题描述

每当我进行合并时,我都喜欢使用-v,这样我就可以在视觉上/偶然地确认正在处理的文件列表。最近(现在使用Mercurial 5.5.1),我也遇到了很多毫无意义的调试噪声:

resolving manifests
calling hook preupdate.eol: hgext.eol.preupdate
getting src/foo
getting src/bar
Couldn't find merge tool ecmerge
Couldn't find merge tool editmerge
Couldn't find merge tool filemerge
Couldn't find merge tool filemergexcode
Couldn't find merge tool gpyfm
Couldn't find merge tool kdiff3
Couldn't find merge tool meld
Couldn't find merge tool bcompare
Couldn't find merge tool bcomposx
Couldn't find merge tool UltraCompare
Couldn't find merge tool araxis
Couldn't find merge tool beyondcompare3
Couldn't find merge tool diffuse
Couldn't find merge tool diffmerge
Couldn't find merge tool p4merge
Couldn't find merge tool p4mergeosx
Couldn't find merge tool tkdiff
Couldn't find merge tool tortoisemerge
Couldn't find merge tool xxdiff
Couldn't find merge tool gvimdiff
Couldn't find merge tool winmerge
Couldn't find merge tool merge
Couldn't find merge tool hgmerge
merging src/foo
Couldn't find merge tool ecmerge
Couldn't find merge tool editmerge
Couldn't find merge tool filemerge
Couldn't find merge tool filemergexcode
Couldn't find merge tool gpyfm
Couldn't find merge tool kdiff3
Couldn't find merge tool meld
Couldn't find merge tool bcompare
Couldn't find merge tool bcomposx
Couldn't find merge tool UltraCompare
Couldn't find merge tool araxis
Couldn't find merge tool beyondcompare3
Couldn't find merge tool diffuse
Couldn't find merge tool diffmerge
Couldn't find merge tool p4merge
Couldn't find merge tool p4mergeosx
Couldn't find merge tool tkdiff
Couldn't find merge tool tortoisemerge
Couldn't find merge tool xxdiff
Couldn't find merge tool gvimdiff
Couldn't find merge tool winmerge
Couldn't find merge tool merge
Couldn't find merge tool hgmerge
merging src/bar

这会转储到每个文件上,这是无用且无益的。 (我知道在存在--debug的情况下可以很好地了解这些信息,而不仅仅是-v/--verbose,而且肯定不会在每个文件上重复!)

所有这些工具条目都来自/usr/lib/python2.7/site-packages/mercurial/defaultrc/mergetools.rc,这只是[merge-tools]的标准Mercurial(很好,Python)INI格式配置块的一长串。

我自己的[merge-tools]中只有一个.hgrc条目,这就是我在合并期间实际使用的条目。这些内置的文件都不会被使用,因此我不在乎是否尚未安装相应的可执行文件

在我自己输入之前,是否可以将[merge-tools]重置为空列表? (我不熟悉Python INI文件的语法规则,而我只是做了一点点搜索就发现了实际的Python代码来进行列表清除,而我无法放入.hgrc文件中。)还有其他一些技巧可以使冗长的合并操作对重复噪声的影响变得更愚蠢吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)