mercurial/hg.py
changeset 14213 30273f0c776b
parent 14168 135e244776f0
child 14377 f90d5641c78b
--- a/mercurial/hg.py	Fri May 06 16:00:48 2011 +0300
+++ b/mercurial/hg.py	Fri May 06 14:44:18 2011 +0200
@@ -480,9 +480,9 @@
         revs = [repo.lookup(rev) for rev in revs]
 
     other = repository(remoteui(repo, opts), dest)
-    inc = discovery.findcommonincoming(repo, other, force=opts.get('force'))
-    common, _anyinc, _heads = inc
-    o = repo.changelog.findmissing(common, revs)
+    common, outheads = discovery.findcommonoutgoing(repo, other, revs,
+                                                    force=opts.get('force'))
+    o = repo.changelog.findmissing(common, outheads)
     if not o:
         ui.status(_("no changes found\n"))
         return None