Mercurial > public > mercurial-scm > hg-stable
diff hgext/hgk.py @ 24513:b5a0b2374eb6
hgk: display obsolete changesets in darkgrey
author | Andrew Shadura <andrew@shadura.me> |
---|---|
date | Sat, 28 Mar 2015 20:05:01 +0100 |
parents | e5c5ddc3b172 |
children | d01c767d8753 |
line wrap: on
line diff
--- a/hgext/hgk.py Sat Mar 28 19:36:21 2015 +0100 +++ b/hgext/hgk.py Sat Mar 28 20:05:01 2015 +0100 @@ -35,7 +35,7 @@ ''' import os -from mercurial import cmdutil, commands, patch, revlog, scmutil +from mercurial import cmdutil, commands, patch, revlog, scmutil, obsolete from mercurial.node import nullid, nullrev, short from mercurial.i18n import _ @@ -128,6 +128,9 @@ ui.write(("committer %s %s %s\n" % (committer, int(date[0]), date[1]))) ui.write(("revision %d\n" % ctx.rev())) ui.write(("branch %s\n" % ctx.branch())) + if obsolete.isenabled(repo, obsolete.createmarkersopt): + if ctx.obsolete(): + ui.write(("obsolete\n")) ui.write(("phase %s\n\n" % ctx.phasestr())) if prefix != "":