Display the name of the repository that is being updated.

Patch contributed by Anton Staaf.

BUG=None
TEST=run "gclient config ...; gclient sync chromium"

Review URL: http://codereview.chromium.org/3497013

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@61733 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
maruel@chromium.org
2010-10-06 23:35:18 +00:00
parent b48f2298b2
commit 55a2eb8871
2 changed files with 18 additions and 15 deletions

View File

@@ -663,7 +663,7 @@ class ExecutionQueue(object):
t.join()
sys.stdout.full_flush()
if self.progress:
self.progress.update(1)
self.progress.update(1, t.item.name)
assert not t.item.name in self.ran
if not t.item.name in self.ran:
self.ran.append(t.item.name)
@@ -681,7 +681,7 @@ class ExecutionQueue(object):
task_item.run(*args, **kwargs)
self.ran.append(task_item.name)
if self.progress:
self.progress.update(1)
self.progress.update(1, ', '.join(t.item.name for t in self.running))
class _Worker(threading.Thread):
"""One thread to execute one WorkItem."""