If you are regular user of Mercurial, you probably know TortoiseHg. And if you also discovered Histedit extension, you may have wondered if it is possible to use Histedit from TortoiseHg.

And the answer is: yes, but….

As can be found in Issue tracking, there is still open request. There you can find an advice to configure it as custom tool. Simple command hg histedit {REV} works well in Windows, but in case of Linux there is some more tweaking needed.

First problem is that for some reason (issue?), output is not visible in the Console (no problem in Windows version). And second problem is wrong editor - same editor is used as for hg in command line. To deal with these issues, final command I use is as follows:

 EDITOR=/usr/bin/leafpad hg histedit {REV} 2> /dev/stdout | xmessage -file -