[PATCH] revset: undocument wdir() until its command outputs get stable
Yuya Nishihara
yuya at tcha.org
Thu Apr 16 12:56:11 UTC 2015
# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1428832831 -32400
# Sun Apr 12 19:00:31 2015 +0900
# Node ID 9a6cae86d7146f7ec6a686a7b225608e06e02f40
# Parent c560d8c687916cb70a6d54c2c9ddcb5c9e457be2
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
diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -267,9 +267,6 @@ def annotate(ui, repo, *pats, **opts):
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:
diff --git a/mercurial/revset.py b/mercurial/revset.py
--- a/mercurial/revset.py
+++ b/mercurial/revset.py
@@ -1896,10 +1896,8 @@ def user(repo, subset, x):
"""
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:
More information about the Mercurial-devel
mailing list