diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-03-22 18:41:52 +0000 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-03-22 18:41:52 +0000 |
commit | 988a23bc269eb181b26ee8ad9a2bfb8c534e5c72 (patch) | |
tree | 4bbfd9a2941c5b228c50947158d90354729c7c9d /morph | |
parent | b64a08879c6c6c7e57625ce8c339ce33af193cc4 (diff) | |
download | morph-988a23bc269eb181b26ee8ad9a2bfb8c534e5c72.tar.gz |
Add test for "morph branch" when system branch directory already exists
Diffstat (limited to 'morph')
-rwxr-xr-x | morph | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -390,6 +390,16 @@ class Morph(cliapp.Application): raise cliapp.AppException("Can't find the mine directory") + def cmd_branch(self, args): + '''Branch the whole system.''' + + if len(args) != 1: + raise cliapp.AppException('morph branch needs name of branch ' + 'as parameter') + + branch = args[0] + os.makedirs(branch) + def msg(self, msg): '''Show a message to the user about what is going on.''' logging.debug(msg) |