##// END OF EJS Templates
manifest: drop the CamelCase name for `manifest.memtreemanifestctx`...
Matt Harbison -
r52966:569e0748 default
parent child Browse files
Show More
@@ -2345,7 +2345,7 class manifestctx: # (repository.imanif
2345 2345 return self.read().find(key)
2346 2346
2347 2347
2348 class MemTreeManifestCtx:
2348 class memtreemanifestctx: # (repository.imanifestrevisionwritable)
2349 2349 _treemanifest: treemanifest
2350 2350
2351 2351 def __init__(self, manifestlog, dir=b''):
@@ -2356,7 +2356,7 class MemTreeManifestCtx:
2356 2356 def _storage(self) -> manifestrevlog:
2357 2357 return self._manifestlog.getstorage(b'')
2358 2358
2359 def copy(self) -> 'MemTreeManifestCtx':
2359 def copy(self) -> 'memtreemanifestctx':
2360 2360 memmf = memtreemanifestctx(self._manifestlog, dir=self._dir)
2361 2361 memmf._treemanifest = self._treemanifest.copy()
2362 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 2384 class TreeManifestCtx:
2393 2385 _data: Optional[treemanifest]
2394 2386
@@ -2451,7 +2443,7 class TreeManifestCtx:
2451 2443 def node(self) -> bytes:
2452 2444 return self._node
2453 2445
2454 def copy(self) -> 'MemTreeManifestCtx':
2446 def copy(self) -> 'memtreemanifestctx':
2455 2447 memmf = memtreemanifestctx(self._manifestlog, dir=self._dir)
2456 2448 memmf._treemanifest = self.read().copy()
2457 2449 return memmf
General Comments 0
You need to be logged in to leave comments. Login now