Mercurial > public > mercurial-scm > hg
diff hgext/absorb.py @ 40150:1be1689d9ce9
absorb: print '{rev}:' as a prefix to the hash
I don't see a sane way to print the summary to identify the changed commit, but
this at least makes it a bit easier to identify a commit when a group of them
changes.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Thu, 11 Oct 2018 22:39:11 -0400 |
parents | d50125dec2c1 |
children | dcda50856843 |
line wrap: on
line diff
--- a/hgext/absorb.py Thu Oct 11 19:02:42 2018 +0200 +++ b/hgext/absorb.py Thu Oct 11 22:39:11 2018 -0400 @@ -727,9 +727,9 @@ 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())) def _getnewfilecontents(self, ctx): """(ctx) -> {path: str}