author | Vadim Gelfer <vadim.gelfer@gmail.com> |
Tue, 28 Mar 2006 09:04:33 -0800 | |
changeset 2017 | 4c03bc02c779 |
parent 2016 | ff5c9a92f556 (current diff) |
parent 2010 | db1eb0de286a (diff) |
child 2018 | ea00c5705043 |
--- a/mercurial/appendfile.py Tue Mar 28 09:01:07 2006 -0800 +++ b/mercurial/appendfile.py Tue Mar 28 09:04:33 2006 -0800 @@ -37,7 +37,7 @@ 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