##// END OF EJS Templates
Improve branch cache sanity check for mq
Matt Mackall -
r3443:e6045fc3 default
parent child Browse files
Show More
@@ -299,7 +299,8 b' class localrepository(repo.repository):'
299 299 f = self.opener("branches.cache")
300 300 last, lrev = f.readline().rstrip().split(" ", 1)
301 301 last, lrev = bin(last), int(lrev)
302 if self.changelog.node(lrev) == last: # sanity check
302 if (lrev < self.changelog.count() and
303 self.changelog.node(lrev) == last): # sanity check
303 304 for l in f:
304 305 node, label = l.rstrip().split(" ", 1)
305 306 self.branchcache[label] = bin(node)
General Comments 0
You need to be logged in to leave comments. Login now