mercurial/revset.py
changeset 22539 6f434ef54222
parent 22538 a428db9ab61d
child 22669 00c8abe64cf3
--- a/mercurial/revset.py	Wed Sep 17 10:59:52 2014 -0700
+++ b/mercurial/revset.py	Wed Sep 17 11:00:03 2014 -0700
@@ -1217,7 +1217,9 @@
         ps = repo[x].parents()
         try:
             p = ps[1].rev()
-            return subset.filter(lambda r: r == p)
+            if p >= 0:
+                return subset & baseset([p])
+            return baseset([])
         except IndexError:
             return baseset([])