~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Aaron Bentley
  • Date: 2005-07-22 14:21:28 UTC
  • Revision ID: abentley@panoramicfeedback.com-20050722142128-d3438cab0870fe06
Fixed up the baz-import plugin

Show diffs side-by-side

added added

removed removed

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