changeset 2017:4c03bc02c779

merge with crew.
author Vadim Gelfer <vadim.gelfer@gmail.com>
date Tue, 28 Mar 2006 09:04:33 -0800
parents ff5c9a92f556 (current diff) db1eb0de286a (diff)
children ea00c5705043
files
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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