equal
deleted
inserted
replaced
101 for path in paths: |
101 for path in paths: |
102 _cachedfiles.add((path, '')) |
102 _cachedfiles.add((path, '')) |
103 |
103 |
104 def join(self, obj, fname): |
104 def join(self, obj, fname): |
105 return obj.sjoin(fname) |
105 return obj.sjoin(fname) |
|
106 |
|
107 def isfilecached(repo, name): |
|
108 """check if a repo has already cached "name" filecache-ed property |
|
109 |
|
110 This returns (cachedobj-or-None, iscached) tuple. |
|
111 """ |
|
112 cacheentry = repo.unfiltered()._filecache.get(name, None) |
|
113 if not cacheentry: |
|
114 return None, False |
|
115 return cacheentry.obj, True |
106 |
116 |
107 class unfilteredpropertycache(util.propertycache): |
117 class unfilteredpropertycache(util.propertycache): |
108 """propertycache that apply to unfiltered repo only""" |
118 """propertycache that apply to unfiltered repo only""" |
109 |
119 |
110 def __get__(self, repo, type=None): |
120 def __get__(self, repo, type=None): |