Show More
@@ -2477,8 +2477,14 b' class localrepository(object):' | |||||
2477 | cache = branchmap.branchcache(rbranchmap, |
|
2477 | cache = branchmap.branchcache(rbranchmap, | |
2478 | self[rtiprev].node(), |
|
2478 | self[rtiprev].node(), | |
2479 | rtiprev) |
|
2479 | rtiprev) | |
2480 | self._branchcaches[None] = cache |
|
2480 | # Try to stick it as low as possible | |
2481 | cache.write(self.unfiltered()) |
|
2481 | # filter above served are unlikely to be fetch from a clone | |
|
2482 | for candidate in ('base', 'immutable', 'served'): | |||
|
2483 | rview = self.filtered(candidate) | |||
|
2484 | if cache.validfor(rview): | |||
|
2485 | self._branchcaches[candidate] = cache | |||
|
2486 | cache.write(rview) | |||
|
2487 | break | |||
2482 | self.invalidate() |
|
2488 | self.invalidate() | |
2483 | return len(self.heads()) + 1 |
|
2489 | return len(self.heads()) + 1 | |
2484 | finally: |
|
2490 | finally: |
General Comments 0
You need to be logged in to leave comments.
Login now