[PATCH 1 of 3] help: hide phaseidx template keyword

Yuya Nishihara yuya at tcha.org
Thu Nov 2 09:33:24 EDT 2017


# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1508573104 -32400
#      Sat Oct 21 17:05:04 2017 +0900
# Node ID a19232e55e7c0838299dbd1dfd93207b24a02f39
# Parent  6798568fe43dc1e28a0c66c54217b563e1f2d5de
help: hide phaseidx template keyword

I don't think it's great idea to expose the internal representation of phases.
Let's discourage use of the phaseidx keyword.

diff --git a/mercurial/templatekw.py b/mercurial/templatekw.py
--- a/mercurial/templatekw.py
+++ b/mercurial/templatekw.py
@@ -816,7 +816,7 @@ def showphase(repo, ctx, templ, **args):
 
 @templatekeyword('phaseidx')
 def showphaseidx(repo, ctx, templ, **args):
-    """Integer. The changeset phase index."""
+    """Integer. The changeset phase index. (ADVANCED)"""
     return ctx.phase()
 
 @templatekeyword('rev')


More information about the Mercurial-devel mailing list