Show More
@@ -691,8 +691,8 b' def repocleartagscachefunc(repo):' | |||||
691 | def clearcache(): |
|
691 | def clearcache(): | |
692 | # _tagscache has been filteredpropertycache since 2.5 (or |
|
692 | # _tagscache has been filteredpropertycache since 2.5 (or | |
693 | # 98c867ac1330), and delattr() can't work in such case |
|
693 | # 98c867ac1330), and delattr() can't work in such case | |
694 |
if |
|
694 | if '_tagscache' in vars(repo): | |
695 |
del repo.__dict__[ |
|
695 | del repo.__dict__['_tagscache'] | |
696 |
|
696 | |||
697 | return clearcache |
|
697 | return clearcache | |
698 |
|
698 |
@@ -57,7 +57,7 b' def _parents(f, follow=True):' | |||||
57 | # renamed filectx won't have a filelog yet, so set it |
|
57 | # renamed filectx won't have a filelog yet, so set it | |
58 | # from the cache to save time |
|
58 | # from the cache to save time | |
59 | for p in pl: |
|
59 | for p in pl: | |
60 |
if not |
|
60 | if not '_filelog' in p.__dict__: | |
61 | p._filelog = _getflog(f._repo, p.path()) |
|
61 | p._filelog = _getflog(f._repo, p.path()) | |
62 |
|
62 | |||
63 | return pl |
|
63 | return pl |
@@ -567,7 +567,7 b' class queue(object):' | |||||
567 | return self.seriesguards |
|
567 | return self.seriesguards | |
568 |
|
568 | |||
569 | def invalidate(self): |
|
569 | def invalidate(self): | |
570 |
for a in |
|
570 | for a in 'applied fullseries series seriesguards'.split(): | |
571 | if a in self.__dict__: |
|
571 | if a in self.__dict__: | |
572 | delattr(self, a) |
|
572 | delattr(self, a) | |
573 | self.applieddirty = False |
|
573 | self.applieddirty = False |
@@ -857,7 +857,7 b' class unbundle20(unpackermixin):' | |||||
857 | needed to move forward to get general delta enabled. |
|
857 | needed to move forward to get general delta enabled. | |
858 | """ |
|
858 | """ | |
859 | yield self._magicstring |
|
859 | yield self._magicstring | |
860 |
assert |
|
860 | assert 'params' not in vars(self) | |
861 | paramssize = self._unpack(_fstreamparamsize)[0] |
|
861 | paramssize = self._unpack(_fstreamparamsize)[0] | |
862 | if paramssize < 0: |
|
862 | if paramssize < 0: | |
863 | raise error.BundleValueError( |
|
863 | raise error.BundleValueError( |
@@ -3199,7 +3199,7 b' class localrepository(object):' | |||||
3199 | # When using the same lock to commit and strip, the phasecache is left |
|
3199 | # When using the same lock to commit and strip, the phasecache is left | |
3200 | # dirty after committing. Then when we strip, the repo is invalidated, |
|
3200 | # dirty after committing. Then when we strip, the repo is invalidated, | |
3201 | # causing those changes to disappear. |
|
3201 | # causing those changes to disappear. | |
3202 |
if |
|
3202 | if '_phasecache' in vars(self): | |
3203 | self._phasecache.write() |
|
3203 | self._phasecache.write() | |
3204 |
|
3204 | |||
3205 | @unfilteredmethod |
|
3205 | @unfilteredmethod |
@@ -171,7 +171,7 b' class mergestate(object):' | |||||
171 | self._local = None |
|
171 | self._local = None | |
172 | self._other = None |
|
172 | self._other = None | |
173 | self._labels = labels |
|
173 | self._labels = labels | |
174 |
for var in ( |
|
174 | for var in ('localctx', 'otherctx'): | |
175 | if var in vars(self): |
|
175 | if var in vars(self): | |
176 | delattr(self, var) |
|
176 | delattr(self, var) | |
177 | if node: |
|
177 | if node: | |
@@ -196,7 +196,7 b' class mergestate(object):' | |||||
196 | self._stateextras = {} |
|
196 | self._stateextras = {} | |
197 | self._local = None |
|
197 | self._local = None | |
198 | self._other = None |
|
198 | self._other = None | |
199 |
for var in ( |
|
199 | for var in ('localctx', 'otherctx'): | |
200 | if var in vars(self): |
|
200 | if var in vars(self): | |
201 | delattr(self, var) |
|
201 | delattr(self, var) | |
202 | self._readmergedriver = None |
|
202 | self._readmergedriver = None |
General Comments 0
You need to be logged in to leave comments.
Login now