Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
18806:932f5d3587c9 | 18807:cf72fd8b3072 |
---|---|
33 Revisions context menu will now display additional entries to fire | 33 Revisions context menu will now display additional entries to fire |
34 vdiff on hovered and selected revisions. | 34 vdiff on hovered and selected revisions. |
35 ''' | 35 ''' |
36 | 36 |
37 import os | 37 import os |
38 from mercurial import commands, util, patch, revlog, scmutil | 38 from mercurial import commands, util, patch, revlog, scmutil, phases |
39 from mercurial.node import nullid, nullrev, short | 39 from mercurial.node import nullid, nullrev, short |
40 from mercurial.i18n import _ | 40 from mercurial.i18n import _ |
41 | 41 |
42 testedwith = 'internal' | 42 testedwith = 'internal' |
43 | 43 |
112 | 112 |
113 ui.write(("author %s %s %s\n" % (ctx.user(), int(date[0]), date[1]))) | 113 ui.write(("author %s %s %s\n" % (ctx.user(), int(date[0]), date[1]))) |
114 if committer != '': | 114 if committer != '': |
115 ui.write(("committer %s %s %s\n" % (committer, int(date[0]), date[1]))) | 115 ui.write(("committer %s %s %s\n" % (committer, int(date[0]), date[1]))) |
116 ui.write(("revision %d\n" % ctx.rev())) | 116 ui.write(("revision %d\n" % ctx.rev())) |
117 ui.write(("branch %s\n\n" % ctx.branch())) | 117 ui.write(("branch %s\n" % ctx.branch())) |
118 ui.write(("phase %s\n\n" % ctx.phasestr())) | |
118 | 119 |
119 if prefix != "": | 120 if prefix != "": |
120 ui.write("%s%s\n" % (prefix, | 121 ui.write("%s%s\n" % (prefix, |
121 description.replace('\n', nlprefix).strip())) | 122 description.replace('\n', nlprefix).strip())) |
122 else: | 123 else: |