~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-11-29 18:41:01 UTC
  • mfrom: (2796.2.22 bzr.reconfigure)
  • Revision ID: pqm@pqm.ubuntu.com-20071129184101-u9506rihe4zbzyyz
bzr reconfigure can now convert to lightweight checkout

Show diffs side-by-side

added added

removed removed

Lines of Context:
4300
4300
                     value_switches=True, enum_switch=False,
4301
4301
                     branch='Reconfigure to a branch.',
4302
4302
                     tree='Reconfigure to a tree.',
4303
 
                     checkout='Reconfigure to a checkout.'),
 
4303
                     checkout='Reconfigure to a checkout.',
 
4304
                     lightweight_checkout='Reconfigure to a lightweight'
 
4305
                     ' checkout.'),
4304
4306
                     Option('bind-to', help='Branch to bind checkout to.',
4305
4307
                            type=str),
4306
4308
                     Option('force',
4319
4321
        elif target_type == 'checkout':
4320
4322
            reconfiguration = reconfigure.Reconfigure.to_checkout(directory,
4321
4323
                                                                  bind_to)
 
4324
        elif target_type == 'lightweight-checkout':
 
4325
            reconfiguration = reconfigure.Reconfigure.to_lightweight_checkout(
 
4326
                directory, bind_to)
4322
4327
        reconfiguration.apply(force)
4323
4328
 
4324
4329