comparison mercurial/templatekw.py @ 26434:0a823de8d7b7

templatekw: reorder stub of showparents() function It will have an implementation.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 26 Sep 2015 12:32:03 +0900
parents e4609ec959f8
children 882b170ae616
comparison
equal deleted inserted replaced
26433:3ad41638b4b4 26434:0a823de8d7b7
395 """:p2node: String. The identification hash of the changeset's second 395 """:p2node: String. The identification hash of the changeset's second
396 parent, as a 40 digit hexadecimal string. If the changeset has no second 396 parent, as a 40 digit hexadecimal string. If the changeset has no second
397 parent, all digits are 0.""" 397 parent, all digits are 0."""
398 return ctx.p2().hex() 398 return ctx.p2().hex()
399 399
400 def _showparents(**args):
401 """:parents: List of strings. The parents of the changeset in "rev:node"
402 format. If the changeset has only one "natural" parent (the predecessor
403 revision) nothing is shown."""
404 pass
405
400 def showphase(repo, ctx, templ, **args): 406 def showphase(repo, ctx, templ, **args):
401 """:phase: String. The changeset phase name.""" 407 """:phase: String. The changeset phase name."""
402 return ctx.phasestr() 408 return ctx.phasestr()
403 409
404 def showphaseidx(repo, ctx, templ, **args): 410 def showphaseidx(repo, ctx, templ, **args):
490 'rev': showrev, 496 'rev': showrev,
491 'subrepos': showsubrepos, 497 'subrepos': showsubrepos,
492 'tags': showtags, 498 'tags': showtags,
493 } 499 }
494 500
495 def _showparents(**args):
496 """:parents: List of strings. The parents of the changeset in "rev:node"
497 format. If the changeset has only one "natural" parent (the predecessor
498 revision) nothing is shown."""
499 pass
500
501 dockeywords = { 501 dockeywords = {
502 'parents': _showparents, 502 'parents': _showparents,
503 } 503 }
504 dockeywords.update(keywords) 504 dockeywords.update(keywords)
505 del dockeywords['branches'] 505 del dockeywords['branches']