##// END OF EJS Templates
phases: ``{phase}`` template keyword display the phase name...
Pierre-Yves David -
r15823:a1f818a2 default
parent child Browse files
Show More
@@ -276,7 +276,11 b' def shownode(repo, ctx, templ, **args):'
276 return ctx.hex()
276 return ctx.hex()
277
277
278 def showphase(repo, ctx, templ, **args):
278 def showphase(repo, ctx, templ, **args):
279 """:rev: Integer. The changeset phase."""
279 """:rev: String. The changeset phase name."""
280 return ctx.phasestr()
281
282 def showphaseidx(repo, ctx, templ, **args):
283 """:rev: Integer. The changeset phase index."""
280 return ctx.phase()
284 return ctx.phase()
281
285
282 def showrev(repo, ctx, templ, **args):
286 def showrev(repo, ctx, templ, **args):
@@ -317,6 +321,7 b' keywords = {'
317 'manifest': showmanifest,
321 'manifest': showmanifest,
318 'node': shownode,
322 'node': shownode,
319 'phase': showphase,
323 'phase': showphase,
324 'phaseidx': showphaseidx,
320 'rev': showrev,
325 'rev': showrev,
321 'tags': showtags,
326 'tags': showtags,
322 }
327 }
@@ -2,7 +2,7 b''
2 > [extensions]
2 > [extensions]
3 > graphlog=
3 > graphlog=
4 > EOF
4 > EOF
5 $ alias hgph='hg log --template "{rev} {phase} {desc} - {node|short}\n"'
5 $ alias hgph='hg log --template "{rev} {phaseidx} {desc} - {node|short}\n"'
6
6
7 $ mkcommit() {
7 $ mkcommit() {
8 > echo "$1" > "$1"
8 > echo "$1" > "$1"
@@ -1,4 +1,4 b''
1 $ alias hglog='hg log --template "{rev} {phase} {desc}\n"'
1 $ alias hglog='hg log --template "{rev} {phaseidx} {desc}\n"'
2 $ mkcommit() {
2 $ mkcommit() {
3 > echo "$1" > "$1"
3 > echo "$1" > "$1"
4 > hg add "$1"
4 > hg add "$1"
General Comments 0
You need to be logged in to leave comments. Login now