changeset 30701:8b1d87243710

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.
author Yuya Nishihara <yuya@tcha.org>
date Thu, 05 Jan 2017 22:53:42 +0900
parents 323f0c4b43f4
children 7e4f431206cd
files mercurial/revset.py tests/test-revset.t
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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