[Bug 4037] New: hg -q --config diff.git=0 diff --stat prints nothing

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Mon Sep 16 20:57:54 CDT 2013


http://bz.selenic.com/show_bug.cgi?id=4037

          Priority: normal
            Bug ID: 4037
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: hg -q --config diff.git=0 diff --stat prints nothing
          Severity: bug
    Classification: Unclassified
                OS: Linux
          Reporter: neuhauser+selenic.com at sigpipe.cz
          Hardware: PC
            Status: UNCONFIRMED
           Version: 2.7.1
         Component: Mercurial
           Product: Mercurial

this test shows a bug in the behavior of

# hg -q --config diff.git=0 diff --stat

the combination of ui.quiet=1, diff.git=0 causes complete silence.

fixture:

  $ export HGRCPATH=$PWD/hgrc
  $ cat > $HGRCPATH <<EOF
  > [ui]
  > interactive = 0
  > username = J. Random Hacker <jrhack at example.org>
  > EOF

  $ doit()
  > {
  >   local q=${1?} g=${2?}
  >   rm -rf .hg f
  >   hg init
  >   echo c > f
  >   hg --config $q --config $g ci -Am 0 f
  >   hg --config $q --config $g diff --stat -c 0
  > }

GOOD:

  $ doit ui.quiet=0 diff.git=1
   f |  1 +
   1 files changed, 1 insertions(+), 0 deletions(-)

GOOD:

  $ doit ui.quiet=0 diff.git=0
   f |  1 +
   1 files changed, 1 insertions(+), 0 deletions(-)

FAIL:

  $ doit ui.quiet=1 diff.git=0

GOOD:

  $ doit ui.quiet=1 diff.git=1
   f |  1 +
   1 files changed, 1 insertions(+), 0 deletions(-)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list