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