Show More
@@ -397,15 +397,18 b' class revbranchcache(object):' | |||||
397 | self._names = [] |
|
397 | self._names = [] | |
398 | self._rbcnamescount = len(self._names) # number of names read at |
|
398 | self._rbcnamescount = len(self._names) # number of names read at | |
399 | # _rbcsnameslen |
|
399 | # _rbcsnameslen | |
400 | self._namesreverse = dict((b, r) for r, b in enumerate(self._names)) |
|
|||
401 |
|
400 | |||
402 | def _clear(self): |
|
401 | def _clear(self): | |
403 | self._rbcsnameslen = 0 |
|
402 | self._rbcsnameslen = 0 | |
404 | del self._names[:] |
|
403 | del self._names[:] | |
405 | self._rbcnamescount = 0 |
|
404 | self._rbcnamescount = 0 | |
406 | self._namesreverse.clear() |
|
|||
407 | self._rbcrevslen = len(self._repo.changelog) |
|
405 | self._rbcrevslen = len(self._repo.changelog) | |
408 | self._rbcrevs = bytearray(self._rbcrevslen * _rbcrecsize) |
|
406 | self._rbcrevs = bytearray(self._rbcrevslen * _rbcrecsize) | |
|
407 | util.clearcachedproperty(self, '_namesreverse') | |||
|
408 | ||||
|
409 | @util.propertycache | |||
|
410 | def _namesreverse(self): | |||
|
411 | return dict((b, r) for r, b in enumerate(self._names)) | |||
409 |
|
412 | |||
410 | def branchinfo(self, rev): |
|
413 | def branchinfo(self, rev): | |
411 | """Return branch name and close flag for rev, using and updating |
|
414 | """Return branch name and close flag for rev, using and updating |
General Comments 0
You need to be logged in to leave comments.
Login now