Patchwork revset: undocument wdir() until its command outputs get stable

login
register
mail settings
Submitter Yuya Nishihara
Date April 16, 2015, 12:56 p.m.
Message ID <9a6cae86d7146f7ec6a6.1429188971@mimosa>
Download mbox | patch
Permalink /patch/8712/
State Accepted
Headers show

Comments

Yuya Nishihara - April 16, 2015, 12:56 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@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
Matt Mackall - April 16, 2015, 10:37 p.m.
On Thu, 2015-04-16 at 21:56 +0900, Yuya Nishihara wrote:
> # HG changeset patch
> # User Yuya Nishihara <yuya@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

Queued for default, thanks.

Patch

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: