##// END OF EJS Templates
logcmdutil: use the same data as {file*} template keywords (issue6642)...
av6 -
r50210:2f326ea1 stable
parent child Browse files
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 [files.modified, files.added, files.removed],
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(files.modified, name=b'file'),
518 added=fm.formatlist(files.added, name=b'file'),
519 removed=fm.formatlist(files.removed, name=b'file'),
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
@@ -407,7 +407,6 b' test that phase are displayed in log at '
407 407 manifest: 7:5e724ffacba267b2ab726c91fc8b650710deaaa8
408 408 user: test
409 409 date: Thu Jan 01 00:00:00 1970 +0000
410 files+: C D E
411 410 extra: branch=default
412 411 description:
413 412 merge B' and E
General Comments 0
You need to be logged in to leave comments. Login now