Show More
@@ -457,11 +457,13 b' def repocleartagscachefunc(repo):' | |||||
457 |
|
457 | |||
458 | # utilities to clear cache |
|
458 | # utilities to clear cache | |
459 |
|
459 | |||
460 |
def clearfilecache( |
|
460 | def clearfilecache(obj, attrname): | |
461 | unfi = repo.unfiltered() |
|
461 | unfiltered = getattr(obj, 'unfiltered', None) | |
462 | if attrname in vars(unfi): |
|
462 | if unfiltered is not None: | |
463 | delattr(unfi, attrname) |
|
463 | obj = obj.unfiltered() | |
464 | unfi._filecache.pop(attrname, None) |
|
464 | if attrname in vars(obj): | |
|
465 | delattr(obj, attrname) | |||
|
466 | obj._filecache.pop(attrname, None) | |||
465 |
|
467 | |||
466 | # perf commands |
|
468 | # perf commands | |
467 |
|
469 |
General Comments 0
You need to be logged in to leave comments.
Login now