~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/option.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:
235
235
        :param converter: Callable to invoke with the value name to produce
236
236
            the value.  If not supplied, self.registry.get is used.
237
237
        :param value_switches: If true, each possible value is assigned its
238
 
            own switch.  For example, instead of '--format metaweave',
239
 
            '--metaweave' can be used interchangeably.
 
238
            own switch.  For example, instead of '--format knit',
 
239
            '--knit' can be used interchangeably.
240
240
        """
241
241
        Option.__init__(self, name, help, type=self.convert)
242
242
        self.registry = registry