Weaning off basectx.int.
Details
Details
- Reviewers
yuja - Group Reviewers
hg-reviewers - Commits
- rHGfd2191d870ff: cmdutil: use ctx.rev() instead of %d % ctx
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
yuja |
hg-reviewers |
Weaning off basectx.int.
Lint Skipped |
Unit Tests Skipped |
# C C y additional head from merge | # C C y additional head from merge | ||||
# C H n merge with a head | # C H n merge with a head | ||||
# | # | ||||
# H H n head merge: head count decreases | # H H n head merge: head count decreases | ||||
if not opts.get('close_branch'): | if not opts.get('close_branch'): | ||||
for r in parents: | for r in parents: | ||||
if r.closesbranch() and r.branch() == branch: | if r.closesbranch() and r.branch() == branch: | ||||
repo.ui.status(_('reopening closed branch head %d\n') % r) | repo.ui.status(_('reopening closed branch head %d\n') % r.rev()) | ||||
if repo.ui.debugflag: | if repo.ui.debugflag: | ||||
repo.ui.write(_('committed changeset %d:%s\n') % (ctx.rev(), ctx.hex())) | repo.ui.write(_('committed changeset %d:%s\n') % (ctx.rev(), ctx.hex())) | ||||
elif repo.ui.verbose: | elif repo.ui.verbose: | ||||
repo.ui.write(_('committed changeset %d:%s\n') % (ctx.rev(), ctx)) | repo.ui.write(_('committed changeset %d:%s\n') % (ctx.rev(), ctx)) | ||||
def postcommitstatus(repo, pats, opts): | def postcommitstatus(repo, pats, opts): | ||||
return repo.status(match=scmutil.match(repo[None], pats, opts)) | return repo.status(match=scmutil.match(repo[None], pats, opts)) |