Submitter | Pierre-Yves David |
---|---|
Date | Sept. 23, 2014, 10:47 p.m. |
Message ID | <c7a53cce932fe019d9c2.1411512475@marginatus.alto.octopoid.net> |
Download | mbox | patch |
Permalink | /patch/5941/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/revset.py b/mercurial/revset.py --- a/mercurial/revset.py +++ b/mercurial/revset.py @@ -1344,11 +1344,11 @@ def rev(repo, subset, x): # i18n: "rev" is a keyword l = int(getstring(l[0], _("rev requires a number"))) except (TypeError, ValueError): # i18n: "rev" is a keyword raise error.ParseError(_("rev expects a number")) - return subset.filter(lambda r: r == l) + return subset & baseset([l]) def matching(repo, subset, x): """``matching(revision [, field])`` Changesets in which a given set of fields match the set of fields in the selected revision or set.