diff -r 851db07bb2de -r 510cafe72004 mercurial/bundlerepo.py --- a/mercurial/bundlerepo.py Fri Aug 15 03:24:40 2014 +0200 +++ b/mercurial/bundlerepo.py Fri Aug 15 03:24:40 2014 +0200 @@ -357,6 +357,9 @@ pass return repo, [], other.close + commonset = set(common) + rheads = [x for x in rheads if x not in commonset] + bundle = None bundlerepo = None localrepo = other.local()