mercurial/streamclone.py
changeset 50928 d718eddf01d9
parent 50706 0452af304808
child 51548 1b17eeba9deb
equal deleted inserted replaced
50927:7a8ea1397816 50928:d718eddf01d9
   426 
   426 
   427         with repo.transaction(b'clone'):
   427         with repo.transaction(b'clone'):
   428             with repo.svfs.backgroundclosing(repo.ui, expectedcount=filecount):
   428             with repo.svfs.backgroundclosing(repo.ui, expectedcount=filecount):
   429                 for i in range(filecount):
   429                 for i in range(filecount):
   430                     # XXX doesn't support '\n' or '\r' in filenames
   430                     # XXX doesn't support '\n' or '\r' in filenames
   431                     if util.safehasattr(fp, 'readline'):
   431                     if hasattr(fp, 'readline'):
   432                         l = fp.readline()
   432                         l = fp.readline()
   433                     else:
   433                     else:
   434                         # inline clonebundles use a chunkbuffer, so no readline
   434                         # inline clonebundles use a chunkbuffer, so no readline
   435                         # --> this should be small anyway, the first line
   435                         # --> this should be small anyway, the first line
   436                         # only contains the size of the bundle
   436                         # only contains the size of the bundle