mercurial/streamclone.py
changeset 49284 d44e3c45f0e4
parent 49190 4ff4e23de7df
child 50292 97e91001a4e0
equal deleted inserted replaced
49283:44b26349127b 49284:d44e3c45f0e4
   424         # nesting occurs also in ordinary case (e.g. enabling
   424         # nesting occurs also in ordinary case (e.g. enabling
   425         # clonebundles).
   425         # clonebundles).
   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 pycompat.xrange(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                     l = fp.readline()
   431                     l = fp.readline()
   432                     try:
   432                     try:
   433                         name, size = l.split(b'\0', 1)
   433                         name, size = l.split(b'\0', 1)
   434                         size = int(size)
   434                         size = int(size)