mercurial/templatekw.py
changeset 17187 293dd81e4601
parent 15947 bdd1ed80e26e
child 17355 c25531ed58b0
child 17357 bd605568c5a0
--- a/mercurial/templatekw.py	Sat Jul 07 00:47:55 2012 -0400
+++ b/mercurial/templatekw.py	Tue Jul 10 09:11:53 2012 -0700
@@ -326,5 +326,16 @@
     '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,
+}
+dockeywords.update(keywords)
+
 # tell hggettext to extract docstrings from these functions:
-i18nfunctions = keywords.values()
+i18nfunctions = dockeywords.values()