Mercurial > hg
comparison mercurial/templatekw.py @ 15947:bdd1ed80e26e stable
templatekw: fix phase keywords
author | Wagner Bruna <wbruna@softwareexpress.com.br> |
---|---|
date | Fri, 20 Jan 2012 13:10:01 -0200 |
parents | a1f818a2b50d |
children | 293dd81e4601 |
comparison
equal
deleted
inserted
replaced
15946:b9c7ac405757 | 15947:bdd1ed80e26e |
---|---|
274 digit string. | 274 digit string. |
275 """ | 275 """ |
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: String. The changeset phase name.""" | 279 """:phase: String. The changeset phase name.""" |
280 return ctx.phasestr() | 280 return ctx.phasestr() |
281 | 281 |
282 def showphaseidx(repo, ctx, templ, **args): | 282 def showphaseidx(repo, ctx, templ, **args): |
283 """:rev: Integer. The changeset phase index.""" | 283 """:phaseidx: Integer. The changeset phase index.""" |
284 return ctx.phase() | 284 return ctx.phase() |
285 | 285 |
286 def showrev(repo, ctx, templ, **args): | 286 def showrev(repo, ctx, templ, **args): |
287 """:rev: Integer. The repository-local changeset revision number.""" | 287 """:rev: Integer. The repository-local changeset revision number.""" |
288 return ctx.rev() | 288 return ctx.rev() |