mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 15:57:43 +03:00
merge with crew.
This commit is contained in:
commit
0597d30d8f
@ -37,7 +37,7 @@ class appendfile(object):
|
||||
fd, self.tmpname = tempfile.mkstemp()
|
||||
self.tmpfp = os.fdopen(fd, 'ab+')
|
||||
self.realfp = fp
|
||||
self.offset = 0
|
||||
self.offset = fp.tell()
|
||||
# real file is not written by anyone else. cache its size so
|
||||
# seek and read can be fast.
|
||||
self.fpsize = os.fstat(fp.fileno()).st_size
|
||||
|
Loading…
Reference in New Issue
Block a user