##// END OF EJS Templates
Fix inlined revlogs to seek to eof after opening "a+"
mason@suse.com -
r2077:4d0700ae default
parent child Browse files
Show More
@@ -778,6 +778,7 b' class revlog(object):'
778 f = self.opener(self.indexfile, "a")
778 f = self.opener(self.indexfile, "a")
779 else:
779 else:
780 f = self.opener(self.indexfile, "a+")
780 f = self.opener(self.indexfile, "a+")
781 f.seek(0, 2)
781 transaction.add(self.indexfile, f.tell())
782 transaction.add(self.indexfile, f.tell())
782
783
783 if len(self.index) == 1 and self.version != 0:
784 if len(self.index) == 1 and self.version != 0:
@@ -908,6 +909,7 b' class revlog(object):'
908 end = self.end(t)
909 end = self.end(t)
909
910
910 ifh = self.opener(self.indexfile, "a+")
911 ifh = self.opener(self.indexfile, "a+")
912 ifh.seek(0, 2)
911 transaction.add(self.indexfile, ifh.tell())
913 transaction.add(self.indexfile, ifh.tell())
912 if self.inlinedata():
914 if self.inlinedata():
913 dfh = None
915 dfh = None
General Comments 0
You need to be logged in to leave comments. Login now