~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Aaron Bentley
  • Date: 2005-08-17 15:47:08 UTC
  • Revision ID: abentley@panoramicfeedback.com-20050817154708-dafc78180bcdc943
Updated shelve/unshelve to upstream latest

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
from errors import NoPyBaz
 
8
try:
 
9
    import baz_import
 
10
    commands.append(baz_import.cmd_baz_import)
 
11
 
 
12
except NoPyBaz:
 
13
    class cmd_baz_import(bzrlib.commands.Command):
 
14
        """Disabled. (Requires PyBaz)"""
 
15
    commands.append(cmd_baz_import)
 
16
 
 
17
if hasattr(bzrlib.commands, 'register_command'):
 
18
    for command in commands:
 
19
        bzrlib.commands.register_command(command)