##// 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 778 f = self.opener(self.indexfile, "a")
779 779 else:
780 780 f = self.opener(self.indexfile, "a+")
781 f.seek(0, 2)
781 782 transaction.add(self.indexfile, f.tell())
782 783
783 784 if len(self.index) == 1 and self.version != 0:
@@ -908,6 +909,7 b' class revlog(object):'
908 909 end = self.end(t)
909 910
910 911 ifh = self.opener(self.indexfile, "a+")
912 ifh.seek(0, 2)
911 913 transaction.add(self.indexfile, ifh.tell())
912 914 if self.inlinedata():
913 915 dfh = None
General Comments 0
You need to be logged in to leave comments. Login now