summaryrefslogtreecommitdiff
path: root/morphlib/plugins/branch_and_merge_plugin.py
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2013-09-04 13:44:16 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2013-09-04 13:44:16 +0000
commit3f0e3e78228e533abd7e051e5103a282a46a645f (patch)
tree0047eeb3031dc0af808fc8ce62891cad2420f0dd /morphlib/plugins/branch_and_merge_plugin.py
parentbe67d3d4c416394588678f67cbc69c879bfc4137 (diff)
downloadmorph-3f0e3e78228e533abd7e051e5103a282a46a645f.tar.gz
b&m: Re-implement morph foreach
The previous version attempted to separate the output of the commands run with newlines by printing a newline at the beginning if it wasn't the first repository. The check it used was for the first repository was flawed by assuming that the root repository was the first repository processed. Since the complication was not worth keeping the output identical, it has been changed to separate by printing a newline after every command and the test output has been amended to include the extra trailing newline.
Diffstat (limited to 'morphlib/plugins/branch_and_merge_plugin.py')
-rw-r--r--morphlib/plugins/branch_and_merge_plugin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/morphlib/plugins/branch_and_merge_plugin.py b/morphlib/plugins/branch_and_merge_plugin.py
index 85e74501..c1549a5d 100644
--- a/morphlib/plugins/branch_and_merge_plugin.py
+++ b/morphlib/plugins/branch_and_merge_plugin.py
@@ -79,7 +79,7 @@ class BranchAndMergePlugin(cliapp.Plugin):
group=group_branch)
# Advanced commands
- self.app.add_subcommand('foreach', self.foreach,
+ self.app.add_subcommand('old-foreach', self.foreach,
arg_synopsis='-- COMMAND [ARGS...]')
def disable(self):