Patchwork [3,of,5] templatekw: reorder stub of showparents() function

login
register
mail settings
Submitter Yuya Nishihara
Date Oct. 1, 2015, 1:38 p.m.
Message ID <a8ca06ee5ffc918900d5.1443706687@mimosa>
Download mbox | patch
Permalink /patch/10715/
State Accepted
Headers show

Comments

Yuya Nishihara - Oct. 1, 2015, 1:38 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1443238323 -32400
#      Sat Sep 26 12:32:03 2015 +0900
# Node ID a8ca06ee5ffc918900d52d3024e7d51926e69628
# Parent  e2a3cb8dcc7fe5f62f78b06153d9b16441c4557a
templatekw: reorder stub of showparents() function

It will have an implementation.

Patch

diff --git a/mercurial/templatekw.py b/mercurial/templatekw.py
--- a/mercurial/templatekw.py
+++ b/mercurial/templatekw.py
@@ -397,6 +397,12 @@  def showp2node(repo, ctx, templ, **args)
     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 @@  keywords = {
     '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,
 }