mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 08:18:15 +03:00
changeset_printer: use changectx to get status tuple
log.parents() can't handle wdir() revision. Because repo.status() creates ctx objects, there would be no benefit to get parent node from changelog.
This commit is contained in:
parent
414876e494
commit
0e68ae9536
@ -1107,7 +1107,6 @@ class changeset_printer(object):
|
||||
label='log.node')
|
||||
return
|
||||
|
||||
log = self.repo.changelog
|
||||
date = util.datestr(ctx.date())
|
||||
|
||||
if self.ui.debugflag:
|
||||
@ -1163,7 +1162,7 @@ class changeset_printer(object):
|
||||
label='log.date')
|
||||
|
||||
if self.ui.debugflag:
|
||||
files = self.repo.status(log.parents(changenode)[0], changenode)[:3]
|
||||
files = ctx.p1().status(ctx)[:3]
|
||||
for key, value in zip([# i18n: column positioning for "hg log"
|
||||
_("files:"),
|
||||
# i18n: column positioning for "hg log"
|
||||
|
Loading…
Reference in New Issue
Block a user