Show More
@@ -414,7 +414,11 class revbranchcache(object): | |||
|
414 | 414 | self._rbcrevs[rbcrevidx:rbcrevidx + _rbcrecsize] = rec |
|
415 | 415 | self._rbcrevslen = min(self._rbcrevslen, rev) |
|
416 | 416 | |
|
417 | def write(self): | |
|
417 | tr = self._repo.currenttransaction() | |
|
418 | if tr: | |
|
419 | tr.addfinalize('write-revbranchcache', self.write) | |
|
420 | ||
|
421 | def write(self, tr=None): | |
|
418 | 422 | """Save branch cache if it is dirty.""" |
|
419 | 423 | repo = self._repo |
|
420 | 424 | if self._rbcnamescount < len(self._names): |
@@ -144,6 +144,7 class statichttprepository(localrepo.loc | |||
|
144 | 144 | self._revbranchcache = None |
|
145 | 145 | self.encodepats = None |
|
146 | 146 | self.decodepats = None |
|
147 | self._transref = None | |
|
147 | 148 | |
|
148 | 149 | def _restrictcapabilities(self, caps): |
|
149 | 150 | caps = super(statichttprepository, self)._restrictcapabilities(caps) |
General Comments 0
You need to be logged in to leave comments.
Login now