Mercurial > hg-stable
comparison tests/test-commit.t @ 41793:251332dbf33d
diff: make sure we output stat even when --git is not passed (issue4037) (BC)
Before this patch, `hg diff --stat` will give an empty output. It will not show
the stat information. I debugged and found that the underlying code does not
return the diff header and due to that, other code paths fails to parse that as
a diff.
I looked into why we don't return diff headers in quiet mode and found the
behavior is from 8f8bb77d560e70bcc95577e4dfa877df18d876ab which does not have
any mention about why it is done. We also show the diff headers in git, so I
think it's fine showing diff header in normal diff in quiet mode.
Differential Revision: https://phab.mercurial-scm.org/D6007
author | Pulkit Goyal <pulkit@yandex-team.ru> |
---|---|
date | Fri, 22 Feb 2019 03:52:10 +0530 |
parents | 1a184b727aff |
children | 165b1aad43da |
comparison
equal
deleted
inserted
replaced
41792:7b04b1154c15 | 41793:251332dbf33d |
---|---|
510 HG: mods=changed | 510 HG: mods=changed |
511 HG: adds= | 511 HG: adds= |
512 HG: dels= | 512 HG: dels= |
513 HG: files=changed | 513 HG: files=changed |
514 HG: | 514 HG: |
515 HG: diff -r d2313f97106f changed | |
515 HG: --- a/changed Thu Jan 01 00:00:00 1970 +0000 | 516 HG: --- a/changed Thu Jan 01 00:00:00 1970 +0000 |
516 HG: +++ b/changed Thu Jan 01 00:00:00 1970 +0000 | 517 HG: +++ b/changed Thu Jan 01 00:00:00 1970 +0000 |
517 HG: @@ -1,1 +1,2 @@ | 518 HG: @@ -1,1 +1,2 @@ |
518 HG: changed | 519 HG: changed |
519 HG: +changed | 520 HG: +changed |
571 HG: mods= | 572 HG: mods= |
572 HG: adds=added | 573 HG: adds=added |
573 HG: dels=removed | 574 HG: dels=removed |
574 HG: files=added removed | 575 HG: files=added removed |
575 HG: | 576 HG: |
577 HG: diff -r d2313f97106f added | |
576 HG: --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | 578 HG: --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
577 HG: +++ b/added Thu Jan 01 00:00:00 1970 +0000 | 579 HG: +++ b/added Thu Jan 01 00:00:00 1970 +0000 |
578 HG: @@ -0,0 +1,1 @@ | 580 HG: @@ -0,0 +1,1 @@ |
579 HG: +added | 581 HG: +added |
580 HG: | 582 HG: |
581 HG: mods= | 583 HG: mods= |
582 HG: adds=added | 584 HG: adds=added |
583 HG: dels=removed | 585 HG: dels=removed |
584 HG: files=added removed | 586 HG: files=added removed |
585 HG: | 587 HG: |
588 HG: diff -r d2313f97106f removed | |
586 HG: --- a/removed Thu Jan 01 00:00:00 1970 +0000 | 589 HG: --- a/removed Thu Jan 01 00:00:00 1970 +0000 |
587 HG: +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 | 590 HG: +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 |
588 HG: @@ -1,1 +0,0 @@ | 591 HG: @@ -1,1 +0,0 @@ |
589 HG: -removed | 592 HG: -removed |
590 HG: | 593 HG: |