Mercurial > public > mercurial-scm > hg
diff hgext/mq.py @ 9642:7d17794f08a9
diffstat: with --git, mark binary files with Bin
Normally, diffs without any text insertions or deletions are reported
as having 0 lines changed by stock diffstat. Compatibility is
preserved with stock diffstat in this case, but when using --git,
binary files are marked with Bin as a means of clarification.
git diff --stat does something similar, though it also includes the
old and new file sizes.
author | Brodie Rao <me+hg@dackz.net> |
---|---|
date | Sun, 25 Oct 2009 02:53:33 +0200 |
parents | 9e76232fbfbe |
children | 3f522d2fa633 |
line wrap: on
line diff
--- a/hgext/mq.py Sun Oct 25 02:52:36 2009 +0200 +++ b/hgext/mq.py Sun Oct 25 02:53:33 2009 +0200 @@ -429,7 +429,8 @@ write = fp is None and repo.ui.write or fp.write if stat: width = self.ui.interactive() and util.termwidth() or 80 - write(patch.diffstat(util.iterlines(chunks), width=width)) + write(patch.diffstat(util.iterlines(chunks), width=width, + git=self.diffopts().git)) else: for chunk in chunks: write(chunk)