# HG changeset patch # User Yuya Nishihara # Date 1483624422 -32400 # Node ID 8b1d8724371088ef3c868127e46b52ac10d725ae # Parent 323f0c4b43f4219e45fd75a437c997944ec3b790 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. diff -r 323f0c4b43f4 -r 8b1d87243710 mercurial/revset.py --- 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): diff -r 323f0c4b43f4 -r 8b1d87243710 tests/test-revset.t --- 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