equal
deleted
inserted
replaced
1256 ) |
1256 ) |
1257 |
1257 |
1258 return filelog.filelog(self.svfs, path, try_split=try_split) |
1258 return filelog.filelog(self.svfs, path, try_split=try_split) |
1259 |
1259 |
1260 |
1260 |
1261 class RevlogNarrowFileStorage: |
1261 class revlognarrowfilestorage: # (repository.ilocalrepositoryfilestorage) |
1262 """File storage when using revlogs and narrow files.""" |
1262 """File storage when using revlogs and narrow files.""" |
1263 |
1263 |
1264 def file(self, path): |
1264 def file(self, path): |
1265 if path.startswith(b'/'): |
1265 if path.startswith(b'/'): |
1266 path = path[1:] |
1266 path = path[1:] |
1270 or txnutil.mayhavepending(self.root) |
1270 or txnutil.mayhavepending(self.root) |
1271 ) |
1271 ) |
1272 return filelog.narrowfilelog( |
1272 return filelog.narrowfilelog( |
1273 self.svfs, path, self._storenarrowmatch, try_split=try_split |
1273 self.svfs, path, self._storenarrowmatch, try_split=try_split |
1274 ) |
1274 ) |
1275 |
|
1276 |
|
1277 revlognarrowfilestorage = interfaceutil.implementer( |
|
1278 repository.ilocalrepositoryfilestorage |
|
1279 )(RevlogNarrowFileStorage) |
|
1280 |
|
1281 if typing.TYPE_CHECKING: |
|
1282 # Help pytype by hiding the interface stuff that confuses it. |
|
1283 revlognarrowfilestorage = RevlogNarrowFileStorage |
|
1284 |
1275 |
1285 |
1276 |
1286 def makefilestorage(requirements, features, **kwargs): |
1277 def makefilestorage(requirements, features, **kwargs): |
1287 """Produce a type conforming to ``ilocalrepositoryfilestorage``.""" |
1278 """Produce a type conforming to ``ilocalrepositoryfilestorage``.""" |
1288 features.add(repository.REPO_FEATURE_REVLOG_FILE_STORAGE) |
1279 features.add(repository.REPO_FEATURE_REVLOG_FILE_STORAGE) |