# HG changeset patch
# User Yuya Nishihara <y...@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')
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to