templatekw: reorder stub of showparents() function
authorYuya Nishihara <yuya@tcha.org>
Sat, 26 Sep 2015 12:32:03 +0900
changeset 26434 0a823de8d7b7
parent 26433 3ad41638b4b4
child 26435 882b170ae616
templatekw: reorder stub of showparents() function It will have an implementation.
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,
 }