##// END OF EJS Templates
branchmap: be more careful about using %d on ints...
Augie Fackler -
r31497:a369482e default
parent child Browse files
Show More
@@ -426,7 +426,7 b' class revbranchcache(object):'
426 else:
426 else:
427 # rev/node map has changed, invalidate the cache from here up
427 # rev/node map has changed, invalidate the cache from here up
428 self._repo.ui.debug("history modification detected - truncating "
428 self._repo.ui.debug("history modification detected - truncating "
429 "revision branch cache to revision %s\n" % rev)
429 "revision branch cache to revision %d\n" % rev)
430 truncate = rbcrevidx + _rbcrecsize
430 truncate = rbcrevidx + _rbcrecsize
431 del self._rbcrevs[truncate:]
431 del self._rbcrevs[truncate:]
432 self._rbcrevslen = min(self._rbcrevslen, truncate)
432 self._rbcrevslen = min(self._rbcrevslen, truncate)
@@ -503,7 +503,7 b' class revbranchcache(object):'
503 len(self._rbcrevs) // _rbcrecsize)
503 len(self._rbcrevs) // _rbcrecsize)
504 f = repo.vfs.open(_rbcrevs, 'ab')
504 f = repo.vfs.open(_rbcrevs, 'ab')
505 if f.tell() != start:
505 if f.tell() != start:
506 repo.ui.debug("truncating %s to %s\n" % (_rbcrevs, start))
506 repo.ui.debug("truncating %s to %d\n" % (_rbcrevs, start))
507 f.seek(start)
507 f.seek(start)
508 if f.tell() != start:
508 if f.tell() != start:
509 start = 0
509 start = 0
General Comments 0
You need to be logged in to leave comments. Login now