Mercurial > public > mercurial-scm > hg
comparison mercurial/cmdutil.py @ 36406:fd2191d870ff
cmdutil: use ctx.rev() instead of %d % ctx
Weaning off basectx.__int__.
Differential Revision: https://phab.mercurial-scm.org/D2428
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 24 Feb 2018 11:13:36 -0800 |
parents | ef6ae3f64c23 |
children | 165cf86365ff |
comparison
equal
deleted
inserted
replaced
36405:0b57596253b8 | 36406:fd2191d870ff |
---|---|
2573 # H H n head merge: head count decreases | 2573 # H H n head merge: head count decreases |
2574 | 2574 |
2575 if not opts.get('close_branch'): | 2575 if not opts.get('close_branch'): |
2576 for r in parents: | 2576 for r in parents: |
2577 if r.closesbranch() and r.branch() == branch: | 2577 if r.closesbranch() and r.branch() == branch: |
2578 repo.ui.status(_('reopening closed branch head %d\n') % r) | 2578 repo.ui.status(_('reopening closed branch head %d\n') % r.rev()) |
2579 | 2579 |
2580 if repo.ui.debugflag: | 2580 if repo.ui.debugflag: |
2581 repo.ui.write(_('committed changeset %d:%s\n') % (ctx.rev(), ctx.hex())) | 2581 repo.ui.write(_('committed changeset %d:%s\n') % (ctx.rev(), ctx.hex())) |
2582 elif repo.ui.verbose: | 2582 elif repo.ui.verbose: |
2583 repo.ui.write(_('committed changeset %d:%s\n') % (ctx.rev(), ctx)) | 2583 repo.ui.write(_('committed changeset %d:%s\n') % (ctx.rev(), ctx)) |