[PATCH] templatekw.showdiffstat: use ctx.diff() instead of calling patch
Alexander Solovyov
alexander at solovyov.net
Tue Dec 7 15:39:14 CST 2010
On Tue, Dec 7, 2010 at 21:47, Matt Mackall <mpm at selenic.com> wrote:
> On Tue, 2010-12-07 at 15:51 +0100, Alexander Solovyov wrote:
>> # HG changeset patch
>> # User Alexander Solovyov <alexander at solovyov.net>
>> # Date 1291733428 -3600
>> # Node ID bd15a88c962a3816b6aa424aeeadd629d8fc7a56
>> # Parent ea190e7ddffdbe601cbac12dcaa106450f48be45
>> templatekw.showdiffstat: use ctx.diff() instead of calling patch
>
> What's the point of this, please?
I don't remember how I did that, but ctx.diff() returned a git patch for
me and patch.diff returned usual patch. And I had a desire to see
binary changes in diffstat as well... But when I'm looking at it right now,
it doesn't display anything, but ctx.diff() outputs much more data.
So looks like it's unnecessary (although it makes code a bit easier
to read).
--
Alexander
More information about the Mercurial-devel
mailing list