mercurial/revset.py
changeset 25716 d50677c3bf44
parent 25706 b7f53c474e2c
child 25765 5e1b0739611c
--- a/mercurial/revset.py	Wed Jul 01 13:14:03 2015 -0700
+++ b/mercurial/revset.py	Thu Jul 02 23:46:18 2015 -0700
@@ -1478,11 +1478,13 @@
     else:
         ps = set()
         cl = repo.changelog
+        up = ps.update
+        parentrevs = cl.parentrevs
         for r in getset(repo, fullreposet(repo), x):
             if r is None:
-                ps.update(p.rev() for p in repo[r].parents())
+                up(p.rev() for p in repo[r].parents())
             else:
-                ps.update(cl.parentrevs(r))
+                up(parentrevs(r))
     ps -= set([node.nullrev])
     return subset & ps