diff mercurial/hg.py @ 18493:fe67107094fd stable

discovery: outgoing pass unfiltered repo to findcommonincoming (issue3776) We noa pass an unfiltered repo in the same way `localrepo.push` does. This does not alter outgoing behavior and prevents possible crash with computing common/missing. The `findcommonincoming` code could be simplified to make this unnecessary, but this is too much change for the freeze.
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Mon, 28 Jan 2013 13:56:11 +0100
parents 1f794204abbd
children 798ab869b2ee
line wrap: on
line diff
--- a/mercurial/hg.py	Mon Jan 28 13:44:44 2013 +0100
+++ b/mercurial/hg.py	Mon Jan 28 13:56:11 2013 +0100
@@ -558,7 +558,7 @@
         revs = [repo.lookup(rev) for rev in scmutil.revrange(repo, revs)]
 
     other = peer(repo, opts, dest)
-    outgoing = discovery.findcommonoutgoing(repo, other, revs,
+    outgoing = discovery.findcommonoutgoing(repo.unfiltered(), other, revs,
                                             force=opts.get('force'))
     o = outgoing.missing
     if not o: