From cc89fd43185f04408f8d4daebc538e776b3411f9 Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Tue, 2 Sep 2014 11:43:31 +0000 Subject: Add status message on successful `morph checkout` / `morph branch` The message tells the user where the newly created directory is. --- morphlib/plugins/branch_and_merge_plugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'morphlib/plugins/branch_and_merge_plugin.py') diff --git a/morphlib/plugins/branch_and_merge_plugin.py b/morphlib/plugins/branch_and_merge_plugin.py index b7d22f43..566b1073 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. -- cgit v1.2.1