summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam@afuera.me.uk>2014-09-02 11:43:31 (GMT)
committerSam Thursfield <sam.thursfield@codethink.co.uk>2014-11-05 13:30:39 (GMT)
commitcc89fd43185f04408f8d4daebc538e776b3411f9 (patch)
treece81308490ce2d92c86bf69bd9e4d012e28d1dd8
parent960616f9fdb11c790d935ad1403e742e87dccb5b (diff)
downloadmorph-cc89fd43185f04408f8d4daebc538e776b3411f9.tar.gz
Add status message on successful `morph checkout` / `morph branch`sam/no-git-update-fixes
The message tells the user where the newly created directory is.
-rw-r--r--morphlib/plugins/branch_and_merge_plugin.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/morphlib/plugins/branch_and_merge_plugin.py b/morphlib/plugins/branch_and_merge_plugin.py
index b7d22f4..566b107 100644
--- a/morphlib/plugins/branch_and_merge_plugin.py
+++ b/morphlib/plugins/branch_and_merge_plugin.py
@@ -125,6 +125,8 @@ class BranchAndMergePlugin(cliapp.Plugin):
if not self.app.settings['no-git-update']:
gd.update_remotes()
+ self.app.status(
+ msg='Created system branch directory %s' % root_dir)
except morphlib.sysbranchdir.SystemBranchDirectoryAlreadyExists as e:
logging.error('Caught exception: %s' % str(e))
raise
@@ -185,7 +187,6 @@ class BranchAndMergePlugin(cliapp.Plugin):
gd.fat_init()
gd.fat_pull()
-
def branch(self, args):
'''Create a new system branch.