mercurial/revset.py
changeset 14073 72c84f24b420
parent 14072 2e4d79dcc0a0
child 14098 9f5a0acb0056
--- a/mercurial/revset.py	Sat Apr 30 18:25:45 2011 +0200
+++ b/mercurial/revset.py	Sat Apr 30 17:21:37 2011 +0200
@@ -554,10 +554,10 @@
         revs = [repo.lookup(rev) for rev in revs]
     other = hg.repository(hg.remoteui(repo, {}), dest)
     repo.ui.pushbuffer()
-    o = discovery.findoutgoing(repo, other)
+    common, _anyinc, _heads = discovery.findcommonincoming(repo, other)
     repo.ui.popbuffer()
     cl = repo.changelog
-    o = set([cl.rev(r) for r in repo.changelog.nodesbetween(o, revs)[0]])
+    o = set([cl.rev(r) for r in repo.changelog.findmissing(common, revs)])
     return [r for r in subset if r in o]
 
 def p1(repo, subset, x):