X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/20a52e06c7e0b8da714aec725b32ed8722f79c35..f9d69fc4927827056cba918d9900e638845864f6:/stgit/commands/coalesce.py diff --git a/stgit/commands/coalesce.py b/stgit/commands/coalesce.py index 2d672bb..ef8e912 100644 --- a/stgit/commands/coalesce.py +++ b/stgit/commands/coalesce.py @@ -17,15 +17,16 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA """ -from optparse import make_option +from stgit.argparse import opt from stgit.out import * from stgit import argparse, utils from stgit.commands import common from stgit.lib import git, transaction -help = 'coalesce two or more patches into one' -usage = """%prog [options] - +help = 'Coalesce two or more patches into one' +kind = 'stack' +usage = ['[options] '] +description = """ Coalesce two or more patches, creating one big patch that contains all their changes. @@ -33,9 +34,10 @@ If there are conflicts when reordering the patches to match the order you specify, you will have to resolve them manually just as if you had done a sequence of pushes and pops yourself.""" +options = [opt('-n', '--name', short = 'Name of coalesced patch') + ] + argparse.message_options(save_template = True) + directory = common.DirectoryHasRepositoryLib() -options = [make_option('-n', '--name', help = 'name of coalesced patch') - ] + argparse.message_options() class SaveTemplateDone(Exception): pass