~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Robert Collins
  • Date: 2006-05-02 02:36:38 UTC
  • mto: (364.1.3 bzrtools)
  • mto: This revision was merged to the branch mainline in revision 366.
  • Revision ID: robertc@robertcollins.net-20060502023638-9d96d5e0f069cc52
Convert push to rpush.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
Various useful plugins for working with bzr.
4
4
"""
5
5
import bzrlib.commands
6
 
import push
 
6
import rpush
7
7
from errors import CommandError
8
8
from patchsource import BzrPatchSource
9
9
from shelf import Shelf
14
14
import bzrlib.branch
15
15
from bzrlib.errors import BzrCommandError
16
16
sys.path.insert(0, os.path.realpath(os.path.join(os.path.dirname(__file__), 
17
 
                                                 "external")))
 
17
                                                 "external")))
18
18
from bzrlib import DEFAULT_IGNORE
19
19
 
20
20
 
377
377
            cmd_multi_pull, cmd_switch, cmd_branch_mark]
378
378
 
379
379
 
380
 
command_decorators = []
381
380
 
382
381
 
383
382
import bzrlib.builtins
384
 
if not hasattr(bzrlib.builtins, "cmd_push"):
385
 
    commands.append(push.cmd_push)
386
 
else:
387
 
    command_decorators.append(push.cmd_push)
 
383
commands.append(rpush.cmd_rpush)
388
384
 
389
385
from errors import NoPyBaz
390
386
try:
417
413
if hasattr(bzrlib.commands, 'register_command'):
418
414
    for command in commands:
419
415
        bzrlib.commands.register_command(command)
420
 
    for command in command_decorators:
421
 
        command._original_command = bzrlib.commands.register_command(
422
 
            command, True)
423
416
 
424
417
 
425
418
def test_suite():