~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Aaron Bentley
  • Date: 2007-01-26 16:28:06 UTC
  • Revision ID: abentley@panoramicfeedback.com-20070126162806-7qf1r598p1tq3u16
Clarify version mismatch warnings

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)