[PATCH 1 of 2] revset: drop docstring from internal _notpublic() function

Yuya Nishihara yuya at tcha.org
Tue May 19 14:58:14 UTC 2015


# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1432045585 -32400
#      Tue May 19 23:26:25 2015 +0900
# Node ID aab49310051b2c7404e1c053779b52fe01aaa3ca
# Parent  a39c35e8e559e238f311c647679e8de3b91748c6
revset: drop docstring from internal _notpublic() function

It shouldn't be listed in "hg help revset".

diff --git a/mercurial/revset.py b/mercurial/revset.py
--- a/mercurial/revset.py
+++ b/mercurial/revset.py
@@ -1478,9 +1478,8 @@ def present(repo, subset, x):
     except error.RepoLookupError:
         return baseset()
 
+# for internal use
 def _notpublic(repo, subset, x):
-    """``_notpublic()``
-    Changeset not in public phase."""
     # i18n: "public" is a keyword
     getargs(x, 0, 0, _("_notpublic takes no arguments"))
     if repo._phasecache._phasesets:


More information about the Mercurial-devel mailing list