diff options
Diffstat (limited to 'project.py')
| -rw-r--r-- | project.py | 42 |
1 files changed, 23 insertions, 19 deletions
| @@ -26,35 +26,39 @@ import sys | |||
| 26 | import tarfile | 26 | import tarfile |
| 27 | import tempfile | 27 | import tempfile |
| 28 | import time | 28 | import time |
| 29 | from typing import NamedTuple, List | 29 | from typing import List, NamedTuple |
| 30 | import urllib.parse | 30 | import urllib.parse |
| 31 | 31 | ||
| 32 | from color import Coloring | 32 | from color import Coloring |
| 33 | from error import DownloadError | ||
| 34 | from error import GitError | ||
| 35 | from error import ManifestInvalidPathError | ||
| 36 | from error import ManifestInvalidRevisionError | ||
| 37 | from error import ManifestParseError | ||
| 38 | from error import NoManifestException | ||
| 39 | from error import RepoError | ||
| 40 | from error import UploadError | ||
| 33 | import fetch | 41 | import fetch |
| 34 | from git_command import GitCommand, git_require | 42 | from git_command import git_require |
| 35 | from git_config import ( | 43 | from git_command import GitCommand |
| 36 | GitConfig, | 44 | from git_config import GetSchemeFromUrl |
| 37 | IsId, | 45 | from git_config import GetUrlCookieFile |
| 38 | GetSchemeFromUrl, | 46 | from git_config import GitConfig |
| 39 | GetUrlCookieFile, | 47 | from git_config import ID_RE |
| 40 | ID_RE, | 48 | from git_config import IsId |
| 41 | ) | 49 | from git_refs import GitRefs |
| 50 | from git_refs import HEAD | ||
| 51 | from git_refs import R_HEADS | ||
| 52 | from git_refs import R_M | ||
| 53 | from git_refs import R_PUB | ||
| 54 | from git_refs import R_TAGS | ||
| 55 | from git_refs import R_WORKTREE_M | ||
| 42 | import git_superproject | 56 | import git_superproject |
| 43 | from git_trace2_event_log import EventLog | 57 | from git_trace2_event_log import EventLog |
| 44 | from error import ( | ||
| 45 | GitError, | ||
| 46 | UploadError, | ||
| 47 | DownloadError, | ||
| 48 | RepoError, | ||
| 49 | ) | ||
| 50 | from error import ManifestInvalidRevisionError, ManifestInvalidPathError | ||
| 51 | from error import NoManifestException, ManifestParseError | ||
| 52 | import platform_utils | 58 | import platform_utils |
| 53 | import progress | 59 | import progress |
| 54 | from repo_trace import Trace | 60 | from repo_trace import Trace |
| 55 | 61 | ||
| 56 | from git_refs import GitRefs, HEAD, R_HEADS, R_TAGS, R_PUB, R_M, R_WORKTREE_M | ||
| 57 | |||
| 58 | 62 | ||
| 59 | class SyncNetworkHalfResult(NamedTuple): | 63 | class SyncNetworkHalfResult(NamedTuple): |
| 60 | """Sync_NetworkHalf return value.""" | 64 | """Sync_NetworkHalf return value.""" |
