Mercurial > hg-stable
diff hgext/hgk.py @ 18807:cf72fd8b3072
hgk: add support for phases
Add support for phases. Update tests.
author | Andrew Shadura <bugzilla@tut.by> |
---|---|
date | Fri, 22 Mar 2013 09:19:41 -0700 |
parents | 542d133ea0a3 |
children | 7f7d5f8a8f15 |
line wrap: on
line diff
--- a/hgext/hgk.py Sun Mar 10 16:42:23 2013 +0100 +++ b/hgext/hgk.py Fri Mar 22 09:19:41 2013 -0700 @@ -35,7 +35,7 @@ ''' import os -from mercurial import commands, util, patch, revlog, scmutil +from mercurial import commands, util, patch, revlog, scmutil, phases from mercurial.node import nullid, nullrev, short from mercurial.i18n import _ @@ -114,7 +114,8 @@ if committer != '': 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\n" % ctx.branch())) + ui.write(("branch %s\n" % ctx.branch())) + ui.write(("phase %s\n\n" % ctx.phasestr())) if prefix != "": ui.write("%s%s\n" % (prefix,