~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Aaron Bentley
  • Date: 2006-03-28 22:16:46 UTC
  • mto: This revision was merged to the branch mainline in revision 358.
  • Revision ID: abentley@panoramicfeedback.com-20060328221646-d36c46c772bdcaa5
cbranch mimics checkout wrt --lightweight

Show diffs side-by-side

added added

removed removed

Lines of Context:
296
296
    standalone branches will be produced.  Standalone branches will also
297
297
    be produced if the source branch is in 0.7 format (or earlier).
298
298
    """
299
 
    takes_args = ["source", "target"]
300
 
    def run(self, source, target):
 
299
    takes_options = [Option("lightweight", 
 
300
                            help="Create a lightweight checkout")]
 
301
    takes_args = ["source", "target?"]
 
302
    def run(self, source, target=None, lightweight=False):
301
303
        from cbranch import cbranch
302
 
        return cbranch(source, target)
 
304
        return cbranch(source, target, lightweight=lightweight)
 
305
 
303
306
 
304
307
class cmd_branches(bzrlib.commands.Command):
305
308
    """Scan a location for branches <BZRTOOLS>"""