Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
mercurial-devel
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mercurial
mercurial-devel
Commits
2140e12d
Commit
2140e12d
authored
8 years ago
by
Yuya Nishihara
Browse files
Options
Downloads
Patches
Plain Diff
fileset: drop false function signatures from revs() and status() docs
They should be inserted by @predicate helper.
parent
64596338
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mercurial/fileset.py
+3
-7
3 additions, 7 deletions
mercurial/fileset.py
with
3 additions
and
7 deletions
mercurial/fileset.py
+
3
−
7
View file @
2140e12d
...
...
@@ -441,10 +441,8 @@
@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
"
))
...
...
@@ -465,9 +463,7 @@
@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
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment