From fef4ae74e26efecf5c803793351b6c843eab4970 Mon Sep 17 00:00:00 2001 From: Chirayu Desai Date: Fri, 12 Apr 2013 14:54:32 +0530 Subject: [PATCH] sync: be more verbose * Print project name if the "quiet" option is not used. Change-Id: I99863bb50f66e4dcbaf2d170bdd05971f2a4e19a Signed-off-by: Chirayu Desai --- subcmds/sync.py | 5 +++++ 1 file changed, 5 insertions(+) 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. # We'll set to true once we've locked the lock. did_lock = False + if not opt.quiet: + print('Fetching project %s' % project.name) + # Encapsulate everything in a try/except/finally so that: # - We always set err_event in the case of an exception. # - We always make sure we call sem.release(). @@ -274,6 +277,8 @@ later is required to fix a server side protocol bug. if self.jobs == 1: for project in projects: pm.update() + if not opt.quiet: + print('Fetching project %s' % project.name) if project.Sync_NetworkHalf( quiet=opt.quiet, current_branch_only=opt.current_branch_only,