[PATCH 0 of 4] hg diff --stat and other improvements

Brodie Rao dackze at gmail.com
Thu Jul 30 10:06:23 CDT 2009

Here are a few patches I've been toying with related to patch.diffstat() and
teaching hg diff about diffstat. It's just a rough draft, so I'd appreciate
any input anyone might have, if there's any interest, etc.

One thing I wanted to add that isn't in this patch series is more detailed
changes about binary files. For example, Git does something like this:

 etc/refcards/calccard.pdf        |  Bin 91956 -> 90696 bytes

Right now I just have patch.diffstat() printing Bin. The current --git diff
output would allow me to get the file's new size, but not the old size.
I haven't quite figured out a clean way to get the old size.

More information about the Mercurial-devel mailing list