Show More
@@ -16,6 +16,7 from __future__ import annotations | |||||
16 | import contextlib |
|
16 | import contextlib | |
17 | import os |
|
17 | import os | |
18 | import shutil |
|
18 | import shutil | |
|
19 | import typing | |||
19 |
|
20 | |||
20 | from .i18n import _ |
|
21 | from .i18n import _ | |
21 | from .node import ( |
|
22 | from .node import ( | |
@@ -287,7 +288,13 def _getfilestarts(cgunpacker): | |||||
287 | return filespos |
|
288 | return filespos | |
288 |
|
289 | |||
289 |
|
290 | |||
290 | class bundlerepository: |
|
291 | _bundle_repo_baseclass = object | |
|
292 | ||||
|
293 | if typing.TYPE_CHECKING: | |||
|
294 | _bundle_repo_baseclass = localrepo.localrepository | |||
|
295 | ||||
|
296 | ||||
|
297 | class bundlerepository(_bundle_repo_baseclass): | |||
291 | """A repository instance that is a union of a local repo and a bundle. |
|
298 | """A repository instance that is a union of a local repo and a bundle. | |
292 |
|
299 | |||
293 | Instances represent a read-only repository composed of a local repository |
|
300 | Instances represent a read-only repository composed of a local repository |
General Comments 0
You need to be logged in to leave comments.
Login now