Show More
@@ -293,7 +293,7 b' class localrepository(repo.repository):' | |||
|
293 | 293 | if self.branchcache != None: |
|
294 | 294 | return self.branchcache |
|
295 | 295 | |
|
296 | self.branchcache = {} | |
|
296 | self.branchcache = {} # avoid recursion in changectx | |
|
297 | 297 | |
|
298 | 298 | try: |
|
299 | 299 | f = self.opener("branches.cache") |
@@ -310,12 +310,11 b' class localrepository(repo.repository):' | |||
|
310 | 310 | |
|
311 | 311 | tip = self.changelog.count() - 1 |
|
312 | 312 | if lrev != tip: |
|
313 | for r in range(lrev + 1, tip + 1): | |
|
314 |
|
|
|
315 |
|
|
|
316 | b = c[5].get("branch") | |
|
313 | for r in xrange(lrev + 1, tip + 1): | |
|
314 | c = self.changectx(r) | |
|
315 | b = c.branch() | |
|
317 | 316 | if b: |
|
318 | self.branchcache[b] = n | |
|
317 | self.branchcache[b] = c.node() | |
|
319 | 318 | self._writebranchcache() |
|
320 | 319 | |
|
321 | 320 | return self.branchcache |
General Comments 0
You need to be logged in to leave comments.
Login now