##// END OF EJS Templates
streamclone: use readexactly when reading stream v2...
Boris Feld -
r35821:3ad3aaeb stable
parent child Browse files
Show More
@@ -594,12 +594,12 b' def consumev2(repo, fp, filecount, files'
594 for vfs in vfsmap.values())
594 for vfs in vfsmap.values())
595 with nested(*ctxs):
595 with nested(*ctxs):
596 for i in range(filecount):
596 for i in range(filecount):
597 src = fp.read(1)
597 src = util.readexactly(fp, 1)
598 vfs = vfsmap[src]
598 vfs = vfsmap[src]
599 namelen = util.uvarintdecodestream(fp)
599 namelen = util.uvarintdecodestream(fp)
600 datalen = util.uvarintdecodestream(fp)
600 datalen = util.uvarintdecodestream(fp)
601
601
602 name = fp.read(namelen)
602 name = util.readexactly(fp, namelen)
603
603
604 if repo.ui.debugflag:
604 if repo.ui.debugflag:
605 repo.ui.debug('adding [%s] %s (%s)\n' %
605 repo.ui.debug('adding [%s] %s (%s)\n' %
General Comments 0
You need to be logged in to leave comments. Login now