Show More
@@ -2345,7 +2345,7 class manifestctx: # (repository.imanif | |||||
2345 | return self.read().find(key) |
|
2345 | return self.read().find(key) | |
2346 |
|
2346 | |||
2347 |
|
2347 | |||
2348 | class MemTreeManifestCtx: |
|
2348 | class memtreemanifestctx: # (repository.imanifestrevisionwritable) | |
2349 | _treemanifest: treemanifest |
|
2349 | _treemanifest: treemanifest | |
2350 |
|
2350 | |||
2351 | def __init__(self, manifestlog, dir=b''): |
|
2351 | def __init__(self, manifestlog, dir=b''): | |
@@ -2356,7 +2356,7 class MemTreeManifestCtx: | |||||
2356 | def _storage(self) -> manifestrevlog: |
|
2356 | def _storage(self) -> manifestrevlog: | |
2357 | return self._manifestlog.getstorage(b'') |
|
2357 | return self._manifestlog.getstorage(b'') | |
2358 |
|
2358 | |||
2359 |
def copy(self) -> ' |
|
2359 | def copy(self) -> 'memtreemanifestctx': | |
2360 | memmf = memtreemanifestctx(self._manifestlog, dir=self._dir) |
|
2360 | memmf = memtreemanifestctx(self._manifestlog, dir=self._dir) | |
2361 | memmf._treemanifest = self._treemanifest.copy() |
|
2361 | memmf._treemanifest = self._treemanifest.copy() | |
2362 | return memmf |
|
2362 | return memmf | |
@@ -2381,14 +2381,6 class MemTreeManifestCtx: | |||||
2381 | ) |
|
2381 | ) | |
2382 |
|
2382 | |||
2383 |
|
2383 | |||
2384 | memtreemanifestctx = interfaceutil.implementer( |
|
|||
2385 | repository.imanifestrevisionwritable |
|
|||
2386 | )(MemTreeManifestCtx) |
|
|||
2387 |
|
||||
2388 | if typing.TYPE_CHECKING: |
|
|||
2389 | memtreemanifestctx = MemTreeManifestCtx |
|
|||
2390 |
|
||||
2391 |
|
||||
2392 | class TreeManifestCtx: |
|
2384 | class TreeManifestCtx: | |
2393 | _data: Optional[treemanifest] |
|
2385 | _data: Optional[treemanifest] | |
2394 |
|
2386 | |||
@@ -2451,7 +2443,7 class TreeManifestCtx: | |||||
2451 | def node(self) -> bytes: |
|
2443 | def node(self) -> bytes: | |
2452 | return self._node |
|
2444 | return self._node | |
2453 |
|
2445 | |||
2454 |
def copy(self) -> ' |
|
2446 | def copy(self) -> 'memtreemanifestctx': | |
2455 | memmf = memtreemanifestctx(self._manifestlog, dir=self._dir) |
|
2447 | memmf = memtreemanifestctx(self._manifestlog, dir=self._dir) | |
2456 | memmf._treemanifest = self.read().copy() |
|
2448 | memmf._treemanifest = self.read().copy() | |
2457 | return memmf |
|
2449 | return memmf |
General Comments 0
You need to be logged in to leave comments.
Login now