~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Aaron Bentley
  • Date: 2005-07-25 14:17:15 UTC
  • Revision ID: abentley@panoramicfeedback.com-20050725141715-d410836f6e4a32c0
Got baz2bzr/annotate working now that ProgressBar is a function

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import bzrlib.commands
 
2
import push
 
3
import annotate
 
4
import shelf
 
5
commands = [push.cmd_push, annotate.cmd_annotate, shelf.cmd_shelve, 
 
6
            shelf.cmd_unshelve]
 
7
try:
 
8
    import baz_import
 
9
    commands.append(baz_import.cmd_baz_import)
 
10
except Exception:
 
11
    class cmd_baz_import(bzrlib.commands.Command):
 
12
        """Disabled. (Requires PyBaz)"""
 
13
    commands.append(cmd_baz_import)
 
14
 
 
15
if hasattr(bzrlib.commands, 'register_command'):
 
16
    for command in commands:
 
17
        bzrlib.commands.register_command(command)