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] |
|
7 |
try: |
|
8 |
import baz_import |
|
9 |
commands.append(baz_import.cmd_baz_import) |
|
102
by Aaron Bentley
Got baz2bzr/annotate working now that ProgressBar is a function |
10 |
except Exception: |
100
by Aaron Bentley
Fixed up the baz-import plugin |
11 |
class cmd_baz_import(bzrlib.commands.Command): |
12 |
"""Disabled. (Requires PyBaz)"""
|
|
13 |
commands.append(cmd_baz_import) |
|
14 |
||
94
by Aaron Bentley
Adjsted to match plugin api |
15 |
if hasattr(bzrlib.commands, 'register_command'): |
93
by Aaron Bentley
Used the bzr 0.5+ plugin stuff |
16 |
for command in commands: |
94
by Aaron Bentley
Adjsted to match plugin api |
17 |
bzrlib.commands.register_command(command) |