# HG changeset patch # User Yuya Nishihara # Date 1443238323 -32400 # Node ID 0a823de8d7b7be69a10215bffc0153d3528a6e0a # Parent 3ad41638b4b4fed26525d50a0d264e712e68f474 templatekw: reorder stub of showparents() function It will have an implementation. diff -r 3ad41638b4b4 -r 0a823de8d7b7 mercurial/templatekw.py --- a/mercurial/templatekw.py Sat Sep 26 12:29:09 2015 +0900 +++ b/mercurial/templatekw.py Sat Sep 26 12:32:03 2015 +0900 @@ -397,6 +397,12 @@ parent, all digits are 0.""" return ctx.p2().hex() +def _showparents(**args): + """:parents: List of strings. The parents of the changeset in "rev:node" + format. If the changeset has only one "natural" parent (the predecessor + revision) nothing is shown.""" + pass + def showphase(repo, ctx, templ, **args): """:phase: String. The changeset phase name.""" return ctx.phasestr() @@ -492,12 +498,6 @@ 'tags': showtags, } -def _showparents(**args): - """:parents: List of strings. The parents of the changeset in "rev:node" - format. If the changeset has only one "natural" parent (the predecessor - revision) nothing is shown.""" - pass - dockeywords = { 'parents': _showparents, }