[PATCH] lets be able to show diffstat along with diff

Alecs King alecsk at gmail.com
Thu Aug 12 13:22:18 CDT 2010


On Fri, Aug 13, 2010 at 01:59:41AM +0900, Yuya Nishihara wrote:
> Alecs King wrote:
> > On Thu, Aug 12, 2010 at 12:41:23AM -0500, Matt Mackall wrote:
> > > Can anyone give a rationale why
> > > hg log -r tip -p --stat == hg log -r tip -p?
> > 
> > you meant,
> > 
> >  hg log -r tip -p --stat == hg log -r tip -stat
> 
> I added `hg log --stat` option corresponding to `hg diff`,
> `--stat` supersedes diff output. But now it looks like incomplete feature
> rather than design.
> It may be usable for `-p --stat` to be diff with diffstat.

Good to know.

> > > Not sure what to make of hg diff --stat though.
> > 
> > Since hg diff is meant to show diff (duh), adding a default show-diff
> > option (-u) makes sense.
> 
> I prefer `hg diff --stat && hg diff` in this case. It isn't hard to type.
> 
> Yuya,

As i said in another mail, this would

1) get clumsy when you specify a few other options
2) does not work well with page or color extension


-- 
Alecs King


More information about the Mercurial-devel mailing list