X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/e55b53e007f02331a27e16bcac18165952a202d5..003753379ff42f2c7d1a69cd1b77b95384f19ea2:/stgit/commands/rename.py diff --git a/stgit/commands/rename.py b/stgit/commands/rename.py index 78a473f..e2b0fa4 100644 --- a/stgit/commands/rename.py +++ b/stgit/commands/rename.py @@ -20,6 +20,7 @@ from optparse import OptionParser, make_option from stgit.commands.common import * from stgit.utils import * +from stgit.out import * from stgit import stack, git @@ -28,7 +29,9 @@ usage = """%prog [options] Rename into in a series.""" -options = [] +directory = DirectoryHasRepository() +options = [make_option('-b', '--branch', + help = 'use BRANCH instead of the default one')] def func(parser, options, args): @@ -37,7 +40,6 @@ def func(parser, options, args): if len(args) != 2: parser.error('incorrect number of arguments') - print 'Renaming patch "%s" -> "%s"...' % (args[0], args[1]), - sys.stdout.flush() + out.start('Renaming patch "%s" to "%s"' % (args[0], args[1])) crt_series.rename_patch(args[0], args[1]) - print 'done' + out.done()