Mercurial > hg-stable
changeset 41792:7b04b1154c15
tests: add test to demonstrate issue4037
`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.
Differential Revision: https://phab.mercurial-scm.org/D6006
author | Pulkit Goyal <pulkit@yandex-team.ru> |
---|---|
date | Sat, 23 Feb 2019 04:50:46 +0530 |
parents | cecdf7418cf1 |
children | 251332dbf33d |
files | tests/test-diffstat.t |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-diffstat.t Fri Jan 18 11:07:46 2019 -0800 +++ b/tests/test-diffstat.t Sat Feb 23 04:50:46 2019 +0530 @@ -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