Show More
@@ -14,7 +14,7 allowing operations like diff and log wi | |||
|
14 | 14 | from __future__ import annotations |
|
15 | 15 | |
|
16 | 16 | import contextlib |
|
17 | ||
|
17 | import typing | |
|
18 | 18 | |
|
19 | 19 | from .i18n import _ |
|
20 | 20 | |
@@ -247,13 +247,20 class unionpeer(localrepo.localpeer): | |||
|
247 | 247 | return False |
|
248 | 248 | |
|
249 | 249 | |
|
250 | class unionrepository: | |
|
250 | _union_repo_baseclass = object | |
|
251 | ||
|
252 | if typing.TYPE_CHECKING: | |
|
253 | _union_repo_baseclass = localrepo.localrepository | |
|
254 | ||
|
255 | ||
|
256 | class unionrepository(_union_repo_baseclass): | |
|
251 | 257 | """Represents the union of data in 2 repositories. |
|
252 | 258 | |
|
253 | 259 | Instances are not usable if constructed directly. Use ``instance()`` |
|
254 | 260 | or ``makeunionrepository()`` to create a usable instance. |
|
255 | 261 | """ |
|
256 | 262 | |
|
263 | # noinspection PyMissingConstructor | |
|
257 | 264 | def __init__(self, repo2, url): |
|
258 | 265 | self.repo2 = repo2 |
|
259 | 266 | self._url = url |
General Comments 0
You need to be logged in to leave comments.
Login now