fileset: drop false function signatures from revs() and status() docs
authorYuya Nishihara <yuya@tcha.org>
Thu, 09 Mar 2017 00:07:13 +0900
changeset 36154 2140e12d32589364947663d5da862b9c24851b76
parent 36153 64596338ba10b6ce8be83ad3e49019937202ca81
child 36155 959ebff3505a3e4c996b62b58659c286b7feb9a8
push id462
push usergszorc@mozilla.com
push dateThu, 09 Mar 2017 22:10:00 +0000
fileset: drop false function signatures from revs() and status() docs They should be inserted by @predicate helper.
mercurial/fileset.py
--- a/mercurial/fileset.py
+++ b/mercurial/fileset.py
@@ -436,20 +436,18 @@ def copied(mctx, x):
     for f in mctx.subset:
         p = mctx.ctx[f].parents()
         if p and p[0].path() != f:
             s.append(f)
     return s
 
 @predicate('revs(revs, pattern)')
 def revs(mctx, x):
-    """``revs(set, revspec)``
-
-    Evaluate set in the specified revisions. If the revset match multiple revs,
-    this will return file matching pattern in any of the revision.
+    """Evaluate set in the specified revisions. If the revset match multiple
+    revs, this will return file matching pattern in any of the revision.
     """
     # i18n: "revs" is a keyword
     r, x = getargs(x, 2, 2, _("revs takes two arguments"))
     # i18n: "revs" is a keyword
     revspec = getstring(r, _("first argument to revs must be a revision"))
     repo = mctx.ctx.repo()
     revs = scmutil.revrange(repo, [revspec])
 
@@ -460,19 +458,17 @@ def revs(mctx, x):
         for f in getset(mctx.switch(ctx, _buildstatus(ctx, x)), x):
             if f not in found:
                 found.add(f)
                 result.append(f)
     return result
 
 @predicate('status(base, rev, pattern)')
 def status(mctx, x):
-    """``status(base, rev, revspec)``
-
-    Evaluate predicate using status change between ``base`` and
+    """Evaluate predicate using status change between ``base`` and
     ``rev``. Examples:
 
     - ``status(3, 7, added())`` - matches files added from "3" to "7"
     """
     repo = mctx.ctx.repo()
     # i18n: "status" is a keyword
     b, r, x = getargs(x, 3, 3, _("status takes three arguments"))
     # i18n: "status" is a keyword