summaryrefslogtreecommitdiff
path: root/morphlib/plugins/branch_and_merge_new_plugin.py
diff options
context:
space:
mode:
authorBen Brown <ben.brown@codethink.co.uk>2013-12-13 14:05:57 +0000
committerBen Brown <ben.brown@codethink.co.uk>2013-12-16 15:25:15 +0000
commit53495e0a507a78e120d4589b52a59b5123c2ecfd (patch)
treea370e906caf48cf0ae8721c98b8b959376511c9d /morphlib/plugins/branch_and_merge_new_plugin.py
parenta127ae932b5941f4376f019e5983fcfadfcc068b (diff)
downloadmorph-53495e0a507a78e120d4589b52a59b5123c2ecfd.tar.gz
Modify morph to strip .morph extensions from parameters
Diffstat (limited to 'morphlib/plugins/branch_and_merge_new_plugin.py')
-rw-r--r--morphlib/plugins/branch_and_merge_new_plugin.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/morphlib/plugins/branch_and_merge_new_plugin.py b/morphlib/plugins/branch_and_merge_new_plugin.py
index 3a3c1d1b..f3b47468 100644
--- a/morphlib/plugins/branch_and_merge_new_plugin.py
+++ b/morphlib/plugins/branch_and_merge_new_plugin.py
@@ -417,9 +417,11 @@ class SimpleBranchAndMergePlugin(cliapp.Plugin):
' a stratum and optionally a chunk'
' as parameters')
- system_name = args[0]
- stratum_name = args[1]
- chunk_name = args[2] if len(args) == 3 else None
+ system_name = morphlib.util.strip_morph_extension(args[0])
+ stratum_name = morphlib.util.strip_morph_extension(args[1])
+ chunk_name = None
+ if len(args) == 3:
+ chunk_name = morphlib.util.strip_morph_extension(args[2])
ws = morphlib.workspace.open('.')
sb = morphlib.sysbranchdir.open_from_within('.')