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