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] <patches>
-
+help = 'Coalesce two or more patches into one'
+kind = 'stack'
+usage = ['[options] <patches>']
+description = """
Coalesce two or more patches, creating one big patch that contains all
their changes.
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