Show More
@@ -2154,7 +2154,7 class manifestlog: # (repository.imanif | |||
|
2154 | 2154 | return self._rootstore._revlog.update_caches(transaction=transaction) |
|
2155 | 2155 | |
|
2156 | 2156 | |
|
2157 | class MemManifestCtx: | |
|
2157 | class memmanifestctx: # (repository.imanifestrevisionwritable) | |
|
2158 | 2158 | _manifestdict: manifestdict |
|
2159 | 2159 | |
|
2160 | 2160 | def __init__(self, manifestlog): |
@@ -2164,7 +2164,7 class MemManifestCtx: | |||
|
2164 | 2164 | def _storage(self) -> manifestrevlog: |
|
2165 | 2165 | return self._manifestlog.getstorage(b'') |
|
2166 | 2166 | |
|
2167 |
def copy(self) -> ' |
|
|
2167 | def copy(self) -> 'memmanifestctx': | |
|
2168 | 2168 | memmf = memmanifestctx(self._manifestlog) |
|
2169 | 2169 | memmf._manifestdict = self.read().copy() |
|
2170 | 2170 | return memmf |
@@ -2185,14 +2185,6 class MemManifestCtx: | |||
|
2185 | 2185 | ) |
|
2186 | 2186 | |
|
2187 | 2187 | |
|
2188 | memmanifestctx = interfaceutil.implementer( | |
|
2189 | repository.imanifestrevisionwritable | |
|
2190 | )(MemManifestCtx) | |
|
2191 | ||
|
2192 | if typing.TYPE_CHECKING: | |
|
2193 | memmanifestctx = MemManifestCtx | |
|
2194 | ||
|
2195 | ||
|
2196 | 2188 | class ManifestCtx: |
|
2197 | 2189 | """A class representing a single revision of a manifest, including its |
|
2198 | 2190 | contents, its parent revs, and its linkrev. |
@@ -2219,7 +2211,7 class ManifestCtx: | |||
|
2219 | 2211 | def node(self) -> bytes: |
|
2220 | 2212 | return self._node |
|
2221 | 2213 | |
|
2222 |
def copy(self) -> |
|
|
2214 | def copy(self) -> memmanifestctx: | |
|
2223 | 2215 | memmf = memmanifestctx(self._manifestlog) |
|
2224 | 2216 | memmf._manifestdict = self.read().copy() |
|
2225 | 2217 | return memmf |
General Comments 0
You need to be logged in to leave comments.
Login now