comparison mercurial/bundlerepo.py @ 51700:7f0cb9ee0534

Backout accidental publication of a large range of revisions I accidentally published 25e7f9dcad0f::bd1483fd7088, this is the inverse.
author Raphaël Gomès <rgomes@octobus.net>
date Tue, 23 Jul 2024 10:02:46 +0200
parents 493034cc3265
children ca7bde5dbafb
comparison
equal deleted inserted replaced
51699:bd1483fd7088 51700:7f0cb9ee0534
406 self.tempfile = temp 406 self.tempfile = temp
407 407
408 with os.fdopen(fdtemp, 'wb') as fptemp: 408 with os.fdopen(fdtemp, 'wb') as fptemp:
409 fptemp.write(header) 409 fptemp.write(header)
410 while True: 410 while True:
411 chunk = readfn(2**18) 411 chunk = readfn(2 ** 18)
412 if not chunk: 412 if not chunk:
413 break 413 break
414 fptemp.write(chunk) 414 fptemp.write(chunk)
415 415
416 return self.vfs.open(self.tempfile, mode=b"rb") 416 return self.vfs.open(self.tempfile, mode=b"rb")