~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Jelmer Vernooij
  • Date: 2005-10-17 19:06:12 UTC
  • Revision ID: jelmer@samba.org-20051017190612-04f4c8c8c22fc198
Fix for new Option API

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
import shelf
8
8
import sys
9
9
import os.path
 
10
from bzrlib.option import Option
10
11
sys.path.append(os.path.dirname(__file__))
11
12
 
12
 
bzrlib.commands.OPTIONS['ignored'] = None
13
 
bzrlib.commands.OPTIONS['detrius'] = None
14
 
bzrlib.commands.OPTIONS['dry-run'] = None
 
13
Option.OPTIONS['ignored'] = Option('ignored')
 
14
Option.OPTIONS['detrius'] = Option('detrius')
 
15
Option.OPTIONS['dry-run'] = Option('dry-run')
15
16
 
16
17
class cmd_clean_tree(bzrlib.commands.Command):
17
18
    """Remove unwanted files from working tree.
28
29
        from clean_tree import clean_tree
29
30
        clean_tree('.', ignored=ignored, detrius=detrius, dry_run=dry_run)
30
31
 
31
 
bzrlib.commands.OPTIONS['no-collapse'] = None
32
 
bzrlib.commands.OPTIONS['no-antialias'] = None
33
 
bzrlib.commands.OPTIONS['cluster'] = None
34
 
bzrlib.commands.OPTIONS['merge-branch'] = str
 
32
Option.OPTIONS['no-collapse'] = Option('no-collapse')
 
33
Option.OPTIONS['no-antialias'] = Option('no-antialias')
 
34
Option.OPTIONS['cluster'] = Option('cluster')
 
35
Option.OPTIONS['merge-branch'] = Option('merge-branch',type=str)
35
36
 
36
37
class cmd_graph_ancestry(bzrlib.commands.Command):
37
38
    """Produce ancestry graphs using dot.