diff options
Diffstat (limited to 'project.py')
| -rw-r--r-- | project.py | 26 |
1 files changed, 13 insertions, 13 deletions
| @@ -152,7 +152,7 @@ def _ProjectHooks(): | |||
| 152 | return _project_hook_list | 152 | return _project_hook_list |
| 153 | 153 | ||
| 154 | 154 | ||
| 155 | class DownloadedChange(object): | 155 | class DownloadedChange: |
| 156 | _commit_cache = None | 156 | _commit_cache = None |
| 157 | 157 | ||
| 158 | def __init__(self, project, base, change_id, ps_id, commit): | 158 | def __init__(self, project, base, change_id, ps_id, commit): |
| @@ -178,7 +178,7 @@ class DownloadedChange(object): | |||
| 178 | return self._commit_cache | 178 | return self._commit_cache |
| 179 | 179 | ||
| 180 | 180 | ||
| 181 | class ReviewableBranch(object): | 181 | class ReviewableBranch: |
| 182 | _commit_cache = None | 182 | _commit_cache = None |
| 183 | _base_exists = None | 183 | _base_exists = None |
| 184 | 184 | ||
| @@ -319,7 +319,7 @@ class DiffColoring(Coloring): | |||
| 319 | self.fail = self.printer("fail", fg="red") | 319 | self.fail = self.printer("fail", fg="red") |
| 320 | 320 | ||
| 321 | 321 | ||
| 322 | class Annotation(object): | 322 | class Annotation: |
| 323 | def __init__(self, name, value, keep): | 323 | def __init__(self, name, value, keep): |
| 324 | self.name = name | 324 | self.name = name |
| 325 | self.value = value | 325 | self.value = value |
| @@ -386,7 +386,7 @@ def _SafeExpandPath(base, subpath, skipfinal=False): | |||
| 386 | return path | 386 | return path |
| 387 | 387 | ||
| 388 | 388 | ||
| 389 | class _CopyFile(object): | 389 | class _CopyFile: |
| 390 | """Container for <copyfile> manifest element.""" | 390 | """Container for <copyfile> manifest element.""" |
| 391 | 391 | ||
| 392 | def __init__(self, git_worktree, src, topdir, dest): | 392 | def __init__(self, git_worktree, src, topdir, dest): |
| @@ -435,7 +435,7 @@ class _CopyFile(object): | |||
| 435 | logger.error("error: Cannot copy file %s to %s", src, dest) | 435 | logger.error("error: Cannot copy file %s to %s", src, dest) |
| 436 | 436 | ||
| 437 | 437 | ||
| 438 | class _LinkFile(object): | 438 | class _LinkFile: |
| 439 | """Container for <linkfile> manifest element.""" | 439 | """Container for <linkfile> manifest element.""" |
| 440 | 440 | ||
| 441 | def __init__(self, git_worktree, src, topdir, dest): | 441 | def __init__(self, git_worktree, src, topdir, dest): |
| @@ -518,7 +518,7 @@ class _LinkFile(object): | |||
| 518 | self.__linkIt(relSrc, absDest) | 518 | self.__linkIt(relSrc, absDest) |
| 519 | 519 | ||
| 520 | 520 | ||
| 521 | class RemoteSpec(object): | 521 | class RemoteSpec: |
| 522 | def __init__( | 522 | def __init__( |
| 523 | self, | 523 | self, |
| 524 | name, | 524 | name, |
| @@ -538,7 +538,7 @@ class RemoteSpec(object): | |||
| 538 | self.fetchUrl = fetchUrl | 538 | self.fetchUrl = fetchUrl |
| 539 | 539 | ||
| 540 | 540 | ||
| 541 | class Project(object): | 541 | class Project: |
| 542 | # These objects can be shared between several working trees. | 542 | # These objects can be shared between several working trees. |
| 543 | @property | 543 | @property |
| 544 | def shareable_dirs(self): | 544 | def shareable_dirs(self): |
| @@ -3475,7 +3475,7 @@ class Project(object): | |||
| 3475 | ) | 3475 | ) |
| 3476 | return logs | 3476 | return logs |
| 3477 | 3477 | ||
| 3478 | class _GitGetByExec(object): | 3478 | class _GitGetByExec: |
| 3479 | def __init__(self, project, bare, gitdir): | 3479 | def __init__(self, project, bare, gitdir): |
| 3480 | self._project = project | 3480 | self._project = project |
| 3481 | self._bare = bare | 3481 | self._bare = bare |
| @@ -3530,7 +3530,7 @@ class Project(object): | |||
| 3530 | except StopIteration: | 3530 | except StopIteration: |
| 3531 | break | 3531 | break |
| 3532 | 3532 | ||
| 3533 | class _Info(object): | 3533 | class _Info: |
| 3534 | def __init__(self, path, omode, nmode, oid, nid, state): | 3534 | def __init__(self, path, omode, nmode, oid, nid, state): |
| 3535 | self.path = path | 3535 | self.path = path |
| 3536 | self.src_path = None | 3536 | self.src_path = None |
| @@ -3716,7 +3716,7 @@ class _DirtyError(LocalSyncFail): | |||
| 3716 | return "contains uncommitted changes" | 3716 | return "contains uncommitted changes" |
| 3717 | 3717 | ||
| 3718 | 3718 | ||
| 3719 | class _InfoMessage(object): | 3719 | class _InfoMessage: |
| 3720 | def __init__(self, project, text): | 3720 | def __init__(self, project, text): |
| 3721 | self.project = project | 3721 | self.project = project |
| 3722 | self.text = text | 3722 | self.text = text |
| @@ -3728,7 +3728,7 @@ class _InfoMessage(object): | |||
| 3728 | syncbuf.out.nl() | 3728 | syncbuf.out.nl() |
| 3729 | 3729 | ||
| 3730 | 3730 | ||
| 3731 | class _Failure(object): | 3731 | class _Failure: |
| 3732 | def __init__(self, project, why): | 3732 | def __init__(self, project, why): |
| 3733 | self.project = project | 3733 | self.project = project |
| 3734 | self.why = why | 3734 | self.why = why |
| @@ -3740,7 +3740,7 @@ class _Failure(object): | |||
| 3740 | syncbuf.out.nl() | 3740 | syncbuf.out.nl() |
| 3741 | 3741 | ||
| 3742 | 3742 | ||
| 3743 | class _Later(object): | 3743 | class _Later: |
| 3744 | def __init__(self, project, action): | 3744 | def __init__(self, project, action): |
| 3745 | self.project = project | 3745 | self.project = project |
| 3746 | self.action = action | 3746 | self.action = action |
| @@ -3766,7 +3766,7 @@ class _SyncColoring(Coloring): | |||
| 3766 | self.fail = self.printer("fail", fg="red") | 3766 | self.fail = self.printer("fail", fg="red") |
| 3767 | 3767 | ||
| 3768 | 3768 | ||
| 3769 | class SyncBuffer(object): | 3769 | class SyncBuffer: |
| 3770 | def __init__(self, config, detach_head=False): | 3770 | def __init__(self, config, detach_head=False): |
| 3771 | self._messages = [] | 3771 | self._messages = [] |
| 3772 | self._failures = [] | 3772 | self._failures = [] |
