Можно ли очистить список Mercurial merge-tools INI? (Избегая спама «не удалось найти инструмент слияния».)

#python #mercurial

#python #mercurial

Вопрос:

В любое время, когда я выполняю слияние, я предпочитаю использовать -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 , который является просто длинным списком стандартного блока конфигурации Mercurial (ну, Python) INI-format для [merge-tools] .

У меня есть одна [merge-tools] запись в моем собственном .hgrc , и это та, которую я фактически использую во время слияний. Ни один из этих встроенных никогда не будет использоваться, поэтому мне все равно, если соответствующий исполняемый файл не был установлен.

Есть ли способ выполнить сброс [merge-tools] в пустой список до моей собственной записи? (Я не знаком с правилами синтаксиса файлов Python INI, и в результате небольшого поиска в Google я нашел только фактический код Python для очистки списка, ничего, что я мог бы поместить в .hgrc файл.) За исключением этого, есть ли какой-нибудь другой трюк, чтобы сделать подробную операцию слияния немного менее тупой из-за повторяющегося шума?