Viewing results of 'hg in/out' in external diff. program

Pavel Shevaev pacha.shevaev at gmail.com
Thu May 14 00:15:49 CDT 2009


Hi folks!

I do a lot of code reviews using "hg in -p /path/to/repo" command and
it would be very nice if its output could be viewed in some external
program(e.g vimdiff).

Is there any way to achieve that?

One way I'm thinking about is:

1) get all changed file names using 'hg in --template '{files}' /path/to/repo'
2) create a temp. directory 'A'
3) fetch all changed files using 'hg cat' into this directory 'A'
4) copy 'A' directory to 'B' directory
5) apply patch retrieved by 'hg in -p /path/to/repo' to directory 'B'
6) compare 'A' and 'B' in any external diff. program

That's not too difficult to implement but maybe someone did something
like this in the past or has a better idea.

Thanks in advance.

P.S. I'm aware of a very nice extdiff extension but it looks like it
can be used instead of 'diff' command only...but maybe I don't know
something about this extension :)

-- 
Best regards, Pavel


More information about the Mercurial mailing list