126 """filecache for a mix files in .hg/store and outside""" |
126 """filecache for a mix files in .hg/store and outside""" |
127 def __init__(self, *pathsandlocations): |
127 def __init__(self, *pathsandlocations): |
128 # scmutil.filecache only uses the path for passing back into our |
128 # scmutil.filecache only uses the path for passing back into our |
129 # join(), so we can safely pass a list of paths and locations |
129 # join(), so we can safely pass a list of paths and locations |
130 super(mixedrepostorecache, self).__init__(*pathsandlocations) |
130 super(mixedrepostorecache, self).__init__(*pathsandlocations) |
131 for path, location in pathsandlocations: |
131 _cachedfiles.update(pathsandlocations) |
132 _cachedfiles.update(pathsandlocations) |
|
133 |
132 |
134 def join(self, obj, fnameandlocation): |
133 def join(self, obj, fnameandlocation): |
135 fname, location = fnameandlocation |
134 fname, location = fnameandlocation |
136 if location == 'plain': |
135 if location == 'plain': |
137 return obj.vfs.join(fname) |
136 return obj.vfs.join(fname) |