Mercurial > public > mercurial-scm > hg-stable
diff tests/test-issue6642.t @ 48891:2f326ea19fbc stable
logcmdutil: use the same data as {file*} template keywords (issue6642)
Since 0c72eddb4be5 template keywords that show files use a different source of
data than ctx.p1().status(ctx). These two functions in logcmdutil also show
file lists when needed (e.g. log with --debug flag), but previously they used
the old way of just looking at status compared to p1 and it resulted in
differences between e.g. hg log --debug and hg log -T '{file*}'.
test-phases.t needs an adjustment because 7 is a merge commit of two
topological branches and one of them introduces files C, D and E.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Thu, 12 May 2022 13:53:50 +0400 |
parents | ec3f88480dbf |
children | 7e5be4a7cda7 |
line wrap: on
line diff
--- a/tests/test-issue6642.t Thu May 12 13:52:10 2022 +0400 +++ b/tests/test-issue6642.t Thu May 12 13:53:50 2022 +0400 @@ -25,11 +25,9 @@ $ hg log -r . --debug | grep files - files+: b (known-bad-output !) - [1] (missing-correct-output !) + [1] $ hg log -r . --debug -T json | egrep '(added|removed|modified)' - "added": ["b"], (known-bad-output !) - "added": [], (missing-correct-output !) + "added": [], "modified": [], "removed": [], $ hg log -r . --debug -T xml | grep path