##// END OF EJS Templates
cache: safer handling of failing seek when writing revision branch cache...
Mads Kiilerich -
r28557:4b83507b default
parent child Browse files
Show More
@@ -482,6 +482,9 b' class revbranchcache(object):'
482 482 if f.tell() != start:
483 483 repo.ui.debug("truncating %s to %s\n" % (_rbcrevs, start))
484 484 f.seek(start)
485 if f.tell() != start:
486 start = 0
487 f.seek(start)
485 488 f.truncate()
486 489 end = revs * _rbcrecsize
487 490 f.write(self._rbcrevs[start:end])
General Comments 0
You need to be logged in to leave comments. Login now