~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Martin Pool
  • Date: 2007-02-06 06:27:24 UTC
  • mto: This revision was merged to the branch mainline in revision 2283.
  • Revision ID: mbp@sourcefrog.net-20070206062724-a5uo1u27jxsal2t0
Moved old weave-based repository formats into bzrlib.repofmt.weaverepo.

Change help for --format to just say 'see help formats'

RepositoryFormat.register_metadir gains an optional parameter for the
module name containing the repository format, and lazily loads from there.

Disable test_interrepository_get_returns_correct_optimiser, because it
seems too brittle.

Remove InterWeaveRepo, these should now just be upgraded.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1089
1089
    """
1090
1090
    takes_args = ['location?']
1091
1091
    takes_options = [
1092
 
                     RegistryOption('format',
1093
 
                            help='Specify a format for this branch. Current'
1094
 
                                 ' formats are: default, knit, metaweave and'
1095
 
                                 ' weave. Default is knit; metaweave and'
1096
 
                                 ' weave are deprecated',
1097
 
                            registry=bzrdir.format_registry,
1098
 
                            converter=get_format_type,
1099
 
                            value_switches=True),
1100
 
                     ]
 
1092
         RegistryOption('format',
 
1093
                help='Specify a format for this branch. '
 
1094
                'See "help formats".',
 
1095
                registry=bzrdir.format_registry,
 
1096
                converter=get_format_type,
 
1097
                value_switches=True),
 
1098
         ]
1101
1099
    def run(self, location=None, format=None):
1102
1100
        if format is None:
1103
1101
            format = get_format_type('default')
1148
1146
        cd trunk-checkout
1149
1147
        (add files here)
1150
1148
    """
1151
 
    takes_args = ["location"] 
 
1149
    takes_args = ["location"]
1152
1150
    takes_options = [RegistryOption('format',
1153
1151
                            help='Specify a format for this repository.'
1154
 
                                 ' Current formats are: default, knit,'
1155
 
                                 ' metaweave and weave. Default is knit;'
1156
 
                                 ' metaweave and weave are deprecated',
 
1152
                                'See "help formats".',
1157
1153
                            registry=bzrdir.format_registry,
1158
1154
                            converter=get_format_type,
1159
1155
                            value_switches=True),
1982
1978
    takes_args = ['url?']
1983
1979
    takes_options = [
1984
1980
                    RegistryOption('format',
1985
 
                        help='Upgrade to a specific format. Current formats'
1986
 
                             ' are: default, knit, metaweave and weave.'
1987
 
                             ' Default is knit; metaweave and weave are'
1988
 
                             ' deprecated',
 
1981
                        help='Upgrade to a specific format. '
 
1982
                        'See "help formats"',
1989
1983
                        registry=bzrdir.format_registry,
1990
1984
                        converter=get_format_type,
1991
1985
                        value_switches=True),