# HG changeset patch # User Pierre-Yves David # Date 1398727732 25200 # Node ID c8b9c6147108e2e9020ad7034a8632bd11345be5 # Parent a1381eea7c7d3ee8a92b4d9fcc403b4b518aa56c revset: fix revision filtering in spanset.contains (regression) The argument is `x` but the variable tested for filtering is `rev`. `rev` happens to be a revset methods, ... never part of the filtered revs. This method is now using `rev` for everything. diff -r a1381eea7c7d -r c8b9c6147108 mercurial/revset.py --- a/mercurial/revset.py Mon Apr 28 17:25:36 2014 -0700 +++ b/mercurial/revset.py Mon Apr 28 16:28:52 2014 -0700 @@ -2783,8 +2783,8 @@ for r in iterrange: yield r - def __contains__(self, x): - return self._contained(x) and not (self._hiddenrevs and rev in + def __contains__(self, rev): + return self._contained(rev) and not (self._hiddenrevs and rev in self._hiddenrevs) def __nonzero__(self):