fix appendfile problem on macos.
when i open file with mode 'a+' on linux, seek position is 0.
on macos seek position is end of file instead. not documented.
--- a/mercurial/appendfile.py Sun Mar 26 22:54:05 2006 +0200
+++ b/mercurial/appendfile.py Mon Mar 27 08:31: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