changeset 24777:077683371b7b

revset: undocument wdir() until its command outputs get stable wdir() implementation is still incomplete and shouldn't be advertised to users. This patch will be backed out when - template values such as {rev} and {node} are settled - major commands and revsets work without crashing
author Yuya Nishihara <yuya@tcha.org>
date Sun, 12 Apr 2015 19:00:31 +0900
parents 52628cd73d3e
children a48b65ab428d
files mercurial/commands.py mercurial/revset.py
diffstat 2 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Thu Apr 16 18:30:08 2015 -0500
+++ b/mercurial/commands.py	Sun Apr 12 19:00:31 2015 +0900
@@ -267,9 +267,6 @@
     anyway, although the results will probably be neither useful
     nor desirable.
 
-    By default, annotate files in the parent of the working directory.
-    Use -r "wdir()" to annotate the working directory files.
-
     Returns 0 on success.
     """
     if not pats:
--- a/mercurial/revset.py	Thu Apr 16 18:30:08 2015 -0500
+++ b/mercurial/revset.py	Sun Apr 12 19:00:31 2015 +0900
@@ -1898,10 +1898,8 @@
     """
     return author(repo, subset, x)
 
+# experimental
 def wdir(repo, subset, x):
-    """``wdir()``
-    Working directory.
-    """
     # i18n: "wdir" is a keyword
     getargs(x, 0, 0, _("wdir takes no arguments"))
     if None in subset: