~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Aaron Bentley
  • Date: 2007-02-07 03:40:37 UTC
  • mto: This revision was merged to the branch mainline in revision 2269.
  • Revision ID: aaron.bentley@utoronto.ca-20070207034037-sx1twhf86tvmfl5p
Add option grouping to RegistryOption and clean up format options

Show diffs side-by-side

added added

removed removed

Lines of Context:
1118
1118
    takes_args = ['location?']
1119
1119
    takes_options = [
1120
1120
                     RegistryOption('format',
1121
 
                            help='Specify a format for this branch. Current'
1122
 
                                 ' formats are: default, knit, metaweave and'
1123
 
                                 ' weave. Default is knit; metaweave and'
1124
 
                                 ' weave are deprecated',
 
1121
                            help='Specify a format for this branch. See "bzr '
 
1122
                            'help formats" for details',
1125
1123
                            converter=bzrdir.format_registry.make_bzrdir,
1126
1124
                            registry=bzrdir.format_registry,
1127
 
                            value_switches=True),
 
1125
                            value_switches=True, title="Branch Format"),
1128
1126
                     ]
1129
1127
    def run(self, location=None, format=None):
1130
1128
        if format is None:
1178
1176
    """
1179
1177
    takes_args = ["location"] 
1180
1178
    takes_options = [RegistryOption('format',
1181
 
                            help='Specify a format for this repository.'
1182
 
                                 ' Current formats are: default, knit,'
1183
 
                                 ' metaweave and weave. Default is knit;'
1184
 
                                 ' metaweave and weave are deprecated',
 
1179
                            help='Specify a format for this repository. See'
 
1180
                                 ' "bzr help formats" for details',
1185
1181
                            registry=bzrdir.format_registry,
1186
1182
                            converter=bzrdir.format_registry.make_bzrdir,
1187
 
                            value_switches=True),
 
1183
                            value_switches=True, title='Repository format'),
1188
1184
                     Option('trees',
1189
1185
                             help='Allows branches in repository to have'
1190
1186
                             ' a working tree')]
2002
1998
    takes_args = ['url?']
2003
1999
    takes_options = [
2004
2000
                    RegistryOption('format',
2005
 
                        help='Upgrade to a specific format. Current formats'
2006
 
                             ' are: default, knit, metaweave and weave.'
2007
 
                             ' Default is knit; metaweave and weave are'
2008
 
                             ' deprecated',
 
2001
                        help='Upgrade to a specific format.  See "bzr help'
 
2002
                             ' formats" for details',
2009
2003
                        registry=bzrdir.format_registry,
2010
2004
                        converter=bzrdir.format_registry.make_bzrdir,
2011
 
                        value_switches=True),
 
2005
                        value_switches=True, title='Branch format'),
2012
2006
                    ]
2013
2007
 
2014
2008