~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/sign_my_commits.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-04-05 13:49:36 UTC
  • mfrom: (5753.2.4 lazyimport-scope)
  • Revision ID: pqm@pqm.ubuntu.com-20110405134936-0ys2p9oyxpsjqvh2
(jelmer) Remove unused lazy imports, fix two scope bugs. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
from bzrlib.lazy_import import lazy_import
21
21
lazy_import(globals(), """
22
22
from bzrlib import (
23
 
    config,
 
23
    bzrdir as _mod_bzrdir,
24
24
    gpg,
25
25
    )
26
 
from bzrlib.bzrdir import BzrDir
27
26
""")
28
27
from bzrlib.commands import Command
29
28
from bzrlib.option import Option
50
49
 
51
50
    def run(self, location=None, committer=None, dry_run=False):
52
51
        if location is None:
53
 
            bzrdir = BzrDir.open_containing('.')[0]
 
52
            bzrdir = _mod_bzrdir.BzrDir.open_containing('.')[0]
54
53
        else:
55
54
            # Passed in locations should be exact
56
 
            bzrdir = BzrDir.open(location)
 
55
            bzrdir = _mod_bzrdir.BzrDir.open(location)
57
56
        branch = bzrdir.open_branch()
58
57
        repo = branch.repository
59
58
        branch_config = branch.get_config()