##// END OF EJS Templates
typing: make `bundlerepository` subclass `localrepository` while type checking...
Matt Harbison -
r53148:9d4ad05b default
parent child Browse files
Show More
@@ -16,6 +16,7 from __future__ import annotations
16 16 import contextlib
17 17 import os
18 18 import shutil
19 import typing
19 20
20 21 from .i18n import _
21 22 from .node import (
@@ -287,7 +288,13 def _getfilestarts(cgunpacker):
287 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 298 """A repository instance that is a union of a local repo and a bundle.
292 299
293 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