mercurial/bundlerepo.py
branchstable
changeset 22182 510cafe72004
parent 21694 c08a22bfa16e
child 23631 b8260abfeb7d
--- 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()