# HG changeset patch # User Pierre-Yves David # Date 2014-10-08 09:47:00 # Node ID 5ee9b78ce805717679e4ba88b2f1fe412df8ecde # Parent 6e739356f9bf26cad5125dbd10449a9124781d47 revset-branch: remove usage of `set()` All smartset classes have fast lookup, so this function will be removed soon. diff --git a/mercurial/revset.py b/mercurial/revset.py --- a/mercurial/revset.py +++ b/mercurial/revset.py @@ -497,8 +497,8 @@ def branch(repo, subset, x): b = set() for r in s: b.add(repo[r].branch()) - s = s.set() - return subset.filter(lambda r: r in s or repo[r].branch() in b) + c = s.__contains__ + return subset.filter(lambda r: c(r) or repo[r].branch() in b) def bumped(repo, subset, x): """``bumped()``