diff options
| author | Chirayu Desai <cdesai@cyanogenmod.org> | 2013-04-12 14:54:32 +0530 |
|---|---|---|
| committer | Chirayu Desai <cdesai@cyanogenmod.org> | 2013-04-15 13:38:49 +0530 |
| commit | fef4ae74e26efecf5c803793351b6c843eab4970 (patch) | |
| tree | f5d53b6aad19cd6c514b9c3e10e050a1d1f6cb18 /subcmds/sync.py | |
| parent | db83b1b5abcc2df1b5c7a76ca74ff60e88fe956e (diff) | |
| download | git-repo-fef4ae74e26efecf5c803793351b6c843eab4970.tar.gz | |
sync: be more verbose
* Print project name if the "quiet" option is not used.
Change-Id: I99863bb50f66e4dcbaf2d170bdd05971f2a4e19a
Signed-off-by: Chirayu Desai <cdesai@cyanogenmod.org>
Diffstat (limited to 'subcmds/sync.py')
| -rw-r--r-- | subcmds/sync.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py index 9ed84b90..42c5f915 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py | |||
| @@ -228,6 +228,9 @@ later is required to fix a server side protocol bug. | |||
| 228 | # We'll set to true once we've locked the lock. | 228 | # We'll set to true once we've locked the lock. |
| 229 | did_lock = False | 229 | did_lock = False |
| 230 | 230 | ||
| 231 | if not opt.quiet: | ||
| 232 | print('Fetching project %s' % project.name) | ||
| 233 | |||
| 231 | # Encapsulate everything in a try/except/finally so that: | 234 | # Encapsulate everything in a try/except/finally so that: |
| 232 | # - We always set err_event in the case of an exception. | 235 | # - We always set err_event in the case of an exception. |
| 233 | # - We always make sure we call sem.release(). | 236 | # - We always make sure we call sem.release(). |
| @@ -274,6 +277,8 @@ later is required to fix a server side protocol bug. | |||
| 274 | if self.jobs == 1: | 277 | if self.jobs == 1: |
| 275 | for project in projects: | 278 | for project in projects: |
| 276 | pm.update() | 279 | pm.update() |
| 280 | if not opt.quiet: | ||
| 281 | print('Fetching project %s' % project.name) | ||
| 277 | if project.Sync_NetworkHalf( | 282 | if project.Sync_NetworkHalf( |
| 278 | quiet=opt.quiet, | 283 | quiet=opt.quiet, |
| 279 | current_branch_only=opt.current_branch_only, | 284 | current_branch_only=opt.current_branch_only, |
