~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Aaron Bentley
  • Date: 2007-08-16 03:30:21 UTC
  • mto: This revision was merged to the branch mainline in revision 576.
  • Revision ID: aaron.bentley@utoronto.ca-20070816033021-e9k6t6rj25ndlhrk
Allow zap --force to delete modified checkouts

Show diffs side-by-side

added added

removed removed

Lines of Context:
406
406
    the branch has no new commits (relative to its parent).
407
407
    """
408
408
    takes_options = [Option("branch", help="Remove associated branch from"
409
 
                                           " repository.")]
 
409
                                           " repository."),
 
410
                     Option('force', help='Delete tree even if contents are'
 
411
                     ' modified.')]
410
412
    takes_args = ["checkout"]
411
 
    def run(self, checkout, branch=False):
 
413
    def run(self, checkout, branch=False, force=False):
412
414
        from zap import zap
413
 
        return zap(checkout, remove_branch=branch)
 
415
        return zap(checkout, remove_branch=branch, allow_modified=force)
414
416
 
415
417
 
416
418
class cmd_cbranch(BzrToolsCommand):