[PATCH] absorb: print '{rev}:' as a prefix to the hash
Yuya Nishihara
yuya at tcha.org
Fri Oct 12 05:30:16 UTC 2018
On Thu, 11 Oct 2018 22:58:54 -0400, Matt Harbison wrote:
> # HG changeset patch
> # User Matt Harbison <matt_harbison at yahoo.com>
> # Date 1539311951 14400
> # Thu Oct 11 22:39:11 2018 -0400
> # Node ID c58143ee3fb6cf75ff779f705cf8e9223f9f8c0c
> # Parent fc6a549e7896dab7402e2110199309fa0b518558
> absorb: print '{rev}:' as a prefix to the hash
Queued, thanks.
> --- a/hgext/absorb.py
> +++ b/hgext/absorb.py
> @@ -727,9 +727,9 @@ class fixupstate(object):
>
> def _ctx2str(self, ctx):
> if self.ui.debugflag:
> - return ctx.hex()
> + return '%d:%s' % (ctx.rev(), ctx.hex())
> else:
> - return node.short(ctx.node())
> + return '%d:%s' % (ctx.rev(), node.short(ctx.node()))
scmutil.formatchangeid() does exactly the same thing.
More information about the Mercurial-devel
mailing list