Show More
@@ -377,10 +377,9 b' class changesetprinter(object):' | |||
|
377 | 377 | self._exthook(ctx) |
|
378 | 378 | |
|
379 | 379 | if self.ui.debugflag: |
|
380 | files = ctx.p1().status(ctx) | |
|
381 | 380 | for key, value in zip( |
|
382 | 381 | [b'files', b'files+', b'files-'], |
|
383 |
[ |
|
|
382 | [ctx.filesmodified(), ctx.filesadded(), ctx.filesremoved()], | |
|
384 | 383 | ): |
|
385 | 384 | if value: |
|
386 | 385 | self.ui.write( |
@@ -512,11 +511,10 b' class changesetformatter(changesetprinte' | |||
|
512 | 511 | or b'added' in datahint |
|
513 | 512 | or b'removed' in datahint |
|
514 | 513 | ): |
|
515 | files = ctx.p1().status(ctx) | |
|
516 | 514 | fm.data( |
|
517 |
modified=fm.formatlist( |
|
|
518 |
added=fm.formatlist( |
|
|
519 |
removed=fm.formatlist( |
|
|
515 | modified=fm.formatlist(ctx.filesmodified(), name=b'file'), | |
|
516 | added=fm.formatlist(ctx.filesadded(), name=b'file'), | |
|
517 | removed=fm.formatlist(ctx.filesremoved(), name=b'file'), | |
|
520 | 518 | ) |
|
521 | 519 | |
|
522 | 520 | verbose = not self.ui.debugflag and self.ui.verbose |
@@ -25,11 +25,9 b' https://bz.mercurial-scm.org/show_bug.cg' | |||
|
25 | 25 | |
|
26 | 26 | |
|
27 | 27 | $ hg log -r . --debug | grep files |
|
28 | files+: b (known-bad-output !) | |
|
29 | [1] (missing-correct-output !) | |
|
28 | [1] | |
|
30 | 29 | $ hg log -r . --debug -T json | egrep '(added|removed|modified)' |
|
31 | "added": ["b"], (known-bad-output !) | |
|
32 | "added": [], (missing-correct-output !) | |
|
30 | "added": [], | |
|
33 | 31 | "modified": [], |
|
34 | 32 | "removed": [], |
|
35 | 33 | $ hg log -r . --debug -T xml | grep path |
General Comments 0
You need to be logged in to leave comments.
Login now