summaryrefslogtreecommitdiffstats
path: root/project.py
diff options
context:
space:
mode:
authorShawn O. Pearce <sop@google.com>2009-04-18 14:53:39 -0700
committerShawn O. Pearce <sop@google.com>2009-04-18 14:53:39 -0700
commit0f0dfa3930bc16078ef0b1a00ff6849333038fc7 (patch)
treee802a68c96d4132199aa2a9d721a56403e0d12d2 /project.py
parent76ca9f8145f367f83df19981da4dd934fdda471b (diff)
downloadgit-repo-0f0dfa3930bc16078ef0b1a00ff6849333038fc7.tar.gz
Add progress meter to 'repo start'
This is mostly useful if the number of projects to switch is many (e.g. all of Android) and a large number of them are behind the current manifest revision. We wind up needing to run git just to make the working tree match, and that often makes the command take a couple of seconds longer than we'd like. Signed-off-by: Shawn O. Pearce <sop@google.com>
Diffstat (limited to 'project.py')
-rw-r--r--project.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/project.py b/project.py
index 0a761ef4..10a9b257 100644
--- a/project.py
+++ b/project.py
@@ -782,7 +782,8 @@ class Project(object):
782 cmd = ['checkout', name, '--'] 782 cmd = ['checkout', name, '--']
783 return GitCommand(self, 783 return GitCommand(self,
784 cmd, 784 cmd,
785 capture_stdout = True).Wait() == 0 785 capture_stdout = True,
786 capture_stderr = True).Wait() == 0
786 787
787 branch = self.GetBranch(name) 788 branch = self.GetBranch(name)
788 branch.remote = self.GetRemote(self.remote.name) 789 branch.remote = self.GetRemote(self.remote.name)
@@ -817,7 +818,8 @@ class Project(object):
817 cmd = ['checkout', '-b', branch.name, rev] 818 cmd = ['checkout', '-b', branch.name, rev]
818 if GitCommand(self, 819 if GitCommand(self,
819 cmd, 820 cmd,
820 capture_stdout = True).Wait() == 0: 821 capture_stdout = True,
822 capture_stderr = True).Wait() == 0:
821 branch.Save() 823 branch.Save()
822 return True 824 return True
823 return False 825 return False