summaryrefslogtreecommitdiff
path: root/morphlib
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2012-09-27 18:41:19 +0100
committerSam Thursfield <sam.thursfield@codethink.co.uk>2012-09-27 19:22:22 +0100
commitfcf40483bfab8c902ff5c09214a8ca768303eb98 (patch)
tree3925d5a49bc64df7eef8782a364a3835bba4f7df /morphlib
parentc821535c6290e47cabf85691b41d6b7dd20a7982 (diff)
downloadmorph-fcf40483bfab8c902ff5c09214a8ca768303eb98.tar.gz
morph merge: Error message wrangling
These do need to be quite clear, because merge failures will happen a lot and we are relatively unhelpful at the moment.
Diffstat (limited to 'morphlib')
-rw-r--r--morphlib/plugins/branch_and_merge_plugin.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/morphlib/plugins/branch_and_merge_plugin.py b/morphlib/plugins/branch_and_merge_plugin.py
index 6f089819..468695d9 100644
--- a/morphlib/plugins/branch_and_merge_plugin.py
+++ b/morphlib/plugins/branch_and_merge_plugin.py
@@ -843,9 +843,9 @@ class BranchAndMergePlugin(cliapp.Plugin):
to_branch_dir, root_repo, to_branch)
if to_root_dir is None:
raise cliapp.AppException(
- 'Merging failed in %s: please manually merge %s into %s '
- 'in this repo and try again.' %
- (root_repo, to_branch, from_branch))
+ 'Merging failed in %s: please \'git merge\' the latest %s '
+ 'into %s in the \'%s\' system branch.' %
+ (root_repo, to_branch, from_branch, from_branch))
for f in glob.glob(os.path.join(to_root_dir, '*.morph')):
name = os.path.basename(f)[:-len('.morph')]
@@ -855,9 +855,10 @@ class BranchAndMergePlugin(cliapp.Plugin):
raise cliapp.AppException(
'merge errors were encountered in the following %s:\n\n'
'\t%s\n\nPlease manually merge the target ref into %s in '
- 'each case, and then merge the system branch.' %
+ 'each case in the %s system branch, and then repeat the '
+ 'system branch merge.' %
('repository' if len(failed_repos)==1 else 'repositories',
- '\n\t'.join(failed_repos), from_branch))
+ '\n\t'.join(failed_repos), from_branch, from_branch))
for repo_dir in dirty_repo_dirs:
# Repo will often turn out to not be dirty: if the changes we