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