# HG changeset patch # User Vadim Gelfer # Date 1143775721 28800 # Node ID 94d3170399e14a855fafbad39b6b175e239c8d7c # Parent 24c604628867c9e20aef9c53952a2c5cdeef4394 work around python bug on solaris 10. write to file opened mode 'a+' should write to end of file and update offset pointer, but does not (solaris 10 has python 2.3.3). fix is to always seek. diff -r 24c604628867 -r 94d3170399e1 mercurial/appendfile.py --- a/mercurial/appendfile.py Thu Mar 30 18:35:52 2006 -0800 +++ b/mercurial/appendfile.py Thu Mar 30 19:28:41 2006 -0800 @@ -70,6 +70,7 @@ def write(self, s): '''append to temp file.''' + self.tmpfp.seek(0, 2) self.tmpfp.write(s) # all writes are appends, so offset must go to end of file. self.offset = self.fpsize + self.tmpfp.tell()