X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/a8032a85059af6e000e6ec958e4d1aa9d1b5db4d..bad9dcfc19eb88f866ebf97692fbde5d7827f76e:/stgit/commands/branch.py diff --git a/stgit/commands/branch.py b/stgit/commands/branch.py index 6a551e4..ef44349 100644 --- a/stgit/commands/branch.py +++ b/stgit/commands/branch.py @@ -45,6 +45,9 @@ options = [make_option('-c', '--create', make_option('--clone', help = 'clone the contents of the current branch', action = 'store_true'), + make_option('--convert', + help = 'switch between old and new format branches', + action = 'store_true'), make_option('--delete', help = 'delete an existing development branch', action = 'store_true'), @@ -150,6 +153,14 @@ def func(parser, options, args): return + elif options.convert: + + if len(args) != 0: + parser.error('incorrect number of arguments') + + crt_series.convert() + return + elif options.delete: if len(args) != 1: