mercurial/revset.py
changeset 24419 0e41f110e69e
parent 24374 77fd1fb538cd
child 24446 582cfcc843c7
--- a/mercurial/revset.py	Tue Mar 17 13:41:24 2015 -0700
+++ b/mercurial/revset.py	Sat Aug 16 13:44:16 2014 +0900
@@ -1852,6 +1852,16 @@
     """
     return author(repo, subset, x)
 
+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:
+        return baseset([None])
+    return baseset()
+
 # for internal use
 def _list(repo, subset, x):
     s = getstring(x, "internal error")
@@ -1947,6 +1957,7 @@
     "tagged": tagged,
     "user": user,
     "unstable": unstable,
+    "wdir": wdir,
     "_list": _list,
     "_intlist": _intlist,
     "_hexlist": _hexlist,
@@ -2019,6 +2030,7 @@
     "tagged",
     "user",
     "unstable",
+    "wdir",
     "_list",
     "_intlist",
     "_hexlist",