93
by Aaron Bentley
Used the bzr 0.5+ plugin stuff |
1 |
import bzrlib.commands |
2 |
import push |
|
3 |
import annotate |
|
4 |
import shelf |
|
100
by Aaron Bentley
Fixed up the baz-import plugin |
5 |
commands = [push.cmd_push, annotate.cmd_annotate, shelf.cmd_shelve, |
6 |
shelf.cmd_unshelve] |
|
105
by Aaron Bentley
Fixed NoPyBaz detection |
7 |
from errors import NoPyBaz |
100
by Aaron Bentley
Fixed up the baz-import plugin |
8 |
try: |
9 |
import baz_import |
|
10 |
commands.append(baz_import.cmd_baz_import) |
|
105
by Aaron Bentley
Fixed NoPyBaz detection |
11 |
|
12 |
except NoPyBaz: |
|
100
by Aaron Bentley
Fixed up the baz-import plugin |
13 |
class cmd_baz_import(bzrlib.commands.Command): |
14 |
"""Disabled. (Requires PyBaz)"""
|
|
15 |
commands.append(cmd_baz_import) |
|
16 |
||
94
by Aaron Bentley
Adjsted to match plugin api |
17 |
if hasattr(bzrlib.commands, 'register_command'): |
93
by Aaron Bentley
Used the bzr 0.5+ plugin stuff |
18 |
for command in commands: |
94
by Aaron Bentley
Adjsted to match plugin api |
19 |
bzrlib.commands.register_command(command) |