D6006: tests: add test to demonstrate issue4037

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Fri Feb 22 23:29:25 UTC 2019


pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  `hg diff --stat -q --config diff.git=0` does not output anything whereas it
  should print the stat. This is a quiet old bug dating to 2013 and looking at
  code I think it exists it since 2005 or when --stat was introduced. The next
  patch will fix the bug.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D6006

AFFECTED FILES
  tests/test-diffstat.t

CHANGE DETAILS

diff --git a/tests/test-diffstat.t b/tests/test-diffstat.t
--- a/tests/test-diffstat.t
+++ b/tests/test-diffstat.t
@@ -282,3 +282,10 @@
   $ hg diff --stat --git
    c => new c |  0 
    1 files changed, 0 insertions(+), 0 deletions(-)
+
+Make sure `diff --stat -q --config diff.git-0` shows stat (issue4037)
+
+  $ hg status
+  A new c
+  R c
+  $ hg diff --stat -q



To: pulkit, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list