# HG changeset patch # User mason@suse.com # Date 1144183124 14400 # Node ID 4d0700ae0991221fd9357d04b1c02c1a78109ffc # Parent d007df6daf8e0619d5c1c1da007d093d88a9ee7d Fix inlined revlogs to seek to eof after opening "a+" diff --git a/mercurial/revlog.py b/mercurial/revlog.py --- a/mercurial/revlog.py +++ b/mercurial/revlog.py @@ -778,6 +778,7 @@ class revlog(object): f = self.opener(self.indexfile, "a") else: f = self.opener(self.indexfile, "a+") + f.seek(0, 2) transaction.add(self.indexfile, f.tell()) if len(self.index) == 1 and self.version != 0: @@ -908,6 +909,7 @@ class revlog(object): end = self.end(t) ifh = self.opener(self.indexfile, "a+") + ifh.seek(0, 2) transaction.add(self.indexfile, ifh.tell()) if self.inlinedata(): dfh = None