Rev 164: Load bzr plugins as early as possible, so other branch in file:///home/jelmer/bzr/pqm/
Jelmer Vernooij
jelmer at samba.org
Mon May 21 02:12:20 BST 2007
At file:///home/jelmer/bzr/pqm/
------------------------------------------------------------
revno: 164
revision-id: jelmer at samba.org-20070520011208-w1h1j4lll1oi1lqd
parent: jelmer at samba.org-20070519173708-q0czfs3nqfejxixc
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: pqm
timestamp: Sun 2007-05-20 02:12:08 +0100
message:
Load bzr plugins as early as possible, so other branch
formats can be provided by plugins.
modified:
pqm/__init__.py i_dc99ede3-0c64-434d-ac84-305c06455a8d
=== modified file 'pqm/__init__.py'
--- a/pqm/__init__.py 2007-04-26 00:10:26 +0000
+++ b/pqm/__init__.py 2007-05-20 01:12:08 +0000
@@ -1352,6 +1352,13 @@
class Bazaar2Handler(VCSHandler):
+ def __init__(self):
+ try:
+ import bzrlib
+ except ImportError:
+ return False
+ bzrlib.plugin.load_plugins()
+
def branch_exists(self, sender, branchspec):
try:
import bzrlib
@@ -1372,7 +1379,6 @@
import bzrlib.plugin
import bzrlib.errors
from bzrlib.workingtree import WorkingTree
- bzrlib.plugin.load_plugins()
tree = WorkingTree.open(dir)
branch = tree.branch
tree.commit(summary, verbose=False)
More information about the bazaar-commits
mailing list