discovery: enforce filtering into revlogbaseddag._internalizeall
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Fri, 15 Nov 2013 23:27:39 -0500
changeset 20224 34d4a037dced
parent 20223 37e2bd560805
child 20225 d2704c48f417
discovery: enforce filtering into revlogbaseddag._internalizeall One more step toward discovery running on filtered repo.
mercurial/dagutil.py
--- a/mercurial/dagutil.py	Fri Nov 15 23:27:15 2013 -0500
+++ b/mercurial/dagutil.py	Fri Nov 15 23:27:39 2013 -0500
@@ -141,7 +141,9 @@
         rl = self._revlog
         if filterunknown:
             return [r for r in map(rl.nodemap.get, ids)
-                    if r is not None and r != nullrev]
+                    if (r is not None
+                        and r != nullrev
+                        and r not in rl.filteredrevs)]
         return map(self._internalize, ids)