如何解决可以清除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 举报,一经查实,本站将立刻删除。