~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Aaron Bentley
  • Date: 2006-07-17 13:28:17 UTC
  • Revision ID: abentley@panoramicfeedback.com-20060717132817-f84f43921c24713a
Cbranch takes a revision option

Show diffs side-by-side

added added

removed removed

Lines of Context:
381
381
    be produced if the source branch is in 0.7 format (or earlier).
382
382
    """
383
383
    takes_options = [Option("lightweight", 
384
 
                            help="Create a lightweight checkout")]
 
384
                            help="Create a lightweight checkout"), 'revision']
385
385
    takes_args = ["source", "target?"]
386
 
    def run(self, source, target=None, lightweight=False):
 
386
    def run(self, source, target=None, lightweight=False, revision=None):
387
387
        from cbranch import cbranch
388
 
        return cbranch(source, target, lightweight=lightweight)
 
388
        return cbranch(source, target, lightweight=lightweight, 
 
389
                       revision=revision)
389
390
 
390
391
 
391
392
class cmd_branches(bzrlib.commands.Command):