diff options
Diffstat (limited to 'project.py')
| -rwxr-xr-x | project.py | 6 |
1 files changed, 6 insertions, 0 deletions
| @@ -39,6 +39,7 @@ from error import GitError, HookError, UploadError, DownloadError | |||
| 39 | from error import ManifestInvalidRevisionError | 39 | from error import ManifestInvalidRevisionError |
| 40 | from error import NoManifestException | 40 | from error import NoManifestException |
| 41 | import platform_utils | 41 | import platform_utils |
| 42 | import progress | ||
| 42 | from repo_trace import IsTrace, Trace | 43 | from repo_trace import IsTrace, Trace |
| 43 | 44 | ||
| 44 | from git_refs import GitRefs, HEAD, R_HEADS, R_TAGS, R_PUB, R_M | 45 | from git_refs import GitRefs, HEAD, R_HEADS, R_TAGS, R_PUB, R_M |
| @@ -3113,6 +3114,11 @@ class SyncBuffer(object): | |||
| 3113 | return True | 3114 | return True |
| 3114 | 3115 | ||
| 3115 | def _PrintMessages(self): | 3116 | def _PrintMessages(self): |
| 3117 | if self._messages or self._failures: | ||
| 3118 | if os.isatty(2): | ||
| 3119 | self.out.write(progress.CSI_ERASE_LINE) | ||
| 3120 | self.out.write('\r') | ||
| 3121 | |||
| 3116 | for m in self._messages: | 3122 | for m in self._messages: |
| 3117 | m.Print(self) | 3123 | m.Print(self) |
| 3118 | for m in self._failures: | 3124 | for m in self._failures: |
