summaryrefslogtreecommitdiff
path: root/morphlib/plugins
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2012-09-24 12:12:46 +0100
committerSam Thursfield <sam.thursfield@codethink.co.uk>2012-09-24 12:53:31 +0100
commitc03e65317209305317a4327033f83d963fb466c9 (patch)
tree328ee01a07022dc58661138be54fe15925c8e162 /morphlib/plugins
parentd22e120835959a063913045ff7473e26b88afea8 (diff)
downloadmorph-c03e65317209305317a4327033f83d963fb466c9.tar.gz
morph branch, checkout, edit: Print message when updating git cache
This can take a long time if it's a big repo that has not been used before, so explain to the user what the command is doing, eg: ~:$ morph edit baserock:morphs foundation linux 2012-09-24 11:53:15 Updating git repository upstream:linux in cache
Diffstat (limited to 'morphlib/plugins')
-rw-r--r--morphlib/plugins/branch_and_merge_plugin.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/morphlib/plugins/branch_and_merge_plugin.py b/morphlib/plugins/branch_and_merge_plugin.py
index c3a209b7..28c09505 100644
--- a/morphlib/plugins/branch_and_merge_plugin.py
+++ b/morphlib/plugins/branch_and_merge_plugin.py
@@ -186,6 +186,8 @@ class BranchAndMergePlugin(cliapp.Plugin):
self.app.settings['repo-alias'])
# Get the repository into the cache; make sure it is up to date.
+ self.app.status(msg='Updating git repository %(reponame)s in cache',
+ reponame=reponame)
repo = cache.cache_repo(reponame)
if not self.app.settings['no-git-update']:
repo.update()