revset: document wdir() as an experimental function
authorYuya Nishihara <yuya@tcha.org>
Thu, 05 Jan 2017 22:53:42 +0900
changeset 30701 8b1d87243710
parent 30700 323f0c4b43f4
child 30702 7e4f431206cd
revset: document wdir() as an experimental function Let's resurrect the docstring since our help module can detect the EXPERIMENTAL tag and display it only if -v is specified. This patch updates the test added by 015c0d1087a3 since wdir() is now documented.
mercurial/revset.py
tests/test-revset.t
--- a/mercurial/revset.py	Sat Aug 20 17:50:23 2016 +0900
+++ b/mercurial/revset.py	Thu Jan 05 22:53:42 2017 +0900
@@ -2259,9 +2259,9 @@
     """
     return author(repo, subset, x)
 
-# experimental
 @predicate('wdir', safe=True)
 def wdir(repo, subset, x):
+    """Working directory. (EXPERIMENTAL)"""
     # i18n: "wdir" is a keyword
     getargs(x, 0, 0, _("wdir takes no arguments"))
     if node.wdirrev in subset or isinstance(subset, fullreposet):
--- a/tests/test-revset.t	Sat Aug 20 17:50:23 2016 +0900
+++ b/tests/test-revset.t	Thu Jan 05 22:53:42 2017 +0900
@@ -2809,8 +2809,8 @@
   [255]
 
 Undocumented functions aren't suggested as similar either
-  $ log 'wdir2()'
-  hg: parse error: unknown identifier: wdir2
+  $ log 'tagged2()'
+  hg: parse error: unknown identifier: tagged2
   [255]
 
 multiple revspecs