~ursinha/lp-qa-tools/bzr-tarmacland

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: John Arbash Meinel
  • Date: 2009-02-06 17:20:48 UTC
  • Revision ID: john@arbash-meinel.com-20090206172048-cbx2imp370faksce
A quick change to delay importing bzrdir until we actually use it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
from bzrlib.commands import Command, register_command
20
20
from bzrlib.option import Option
21
21
 
22
 
from bzrlib.bzrdir import BzrDir
23
 
 
24
22
 
25
23
version_info = (1, 4, 0, 'dev', 0)
26
24
 
84
82
 
85
83
    def run(self, location=None, message=None, public_location=None,
86
84
            dry_run=False, submit_branch=None):
87
 
        from bzrlib import errors, trace
 
85
        from bzrlib import errors, trace, bzrdir
88
86
        if __name__ != 'bzrlib.plugins.pqm':
89
87
            trace.warning('The bzr-pqm plugin needs to be called'
90
88
                          ' "bzrlib.plugins.pqm" not "%s"\n'
95
93
 
96
94
        if location is None:
97
95
            location = '.'
98
 
        tree, b, relpath = BzrDir.open_containing_tree_or_branch(location)
 
96
        tree, b, relpath = bzrdir.BzrDir.open_containing_tree_or_branch(location)
99
97
        if relpath and not tree and location != '.':
100
98
            raise errors.BzrCommandError(
101
99
                'No working tree was found, but we were not given the '