mercurial/bundlerepo.py
branchstable
changeset 22182 510cafe72004
parent 21694 c08a22bfa16e
child 23631 b8260abfeb7d
equal deleted inserted replaced
22181:851db07bb2de 22182:510cafe72004
   355                 os.unlink(bundlename)
   355                 os.unlink(bundlename)
   356         except OSError:
   356         except OSError:
   357             pass
   357             pass
   358         return repo, [], other.close
   358         return repo, [], other.close
   359 
   359 
       
   360     commonset = set(common)
       
   361     rheads = [x for x in rheads if x not in commonset]
       
   362 
   360     bundle = None
   363     bundle = None
   361     bundlerepo = None
   364     bundlerepo = None
   362     localrepo = other.local()
   365     localrepo = other.local()
   363     if bundlename or not localrepo:
   366     if bundlename or not localrepo:
   364         # create a bundle (uncompressed if other repo is not local)
   367         # create a bundle (uncompressed if other repo is not local)