~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/sign_my_commits.py

  • Committer: Jelmer Vernooij
  • Date: 2011-03-10 13:52:27 UTC
  • mto: (5712.4.5 bzrdir-weave)
  • mto: This revision was merged to the branch mainline in revision 5716.
  • Revision ID: jelmer@samba.org-20110310135227-ufcw0utlwsp8r6k6
Revert registry changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006, 2007, 2009, 2010, 2011 Canonical Ltd
 
1
# Copyright (C) 2006, 2007, 2009, 2010 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
20
20
from bzrlib.lazy_import import lazy_import
21
21
lazy_import(globals(), """
22
22
from bzrlib import (
23
 
    bzrdir as _mod_bzrdir,
 
23
    config,
24
24
    gpg,
25
25
    )
 
26
from bzrlib.bzrdir import BzrDir
26
27
""")
27
28
from bzrlib.commands import Command
28
29
from bzrlib.option import Option
49
50
 
50
51
    def run(self, location=None, committer=None, dry_run=False):
51
52
        if location is None:
52
 
            bzrdir = _mod_bzrdir.BzrDir.open_containing('.')[0]
 
53
            bzrdir = BzrDir.open_containing('.')[0]
53
54
        else:
54
55
            # Passed in locations should be exact
55
 
            bzrdir = _mod_bzrdir.BzrDir.open(location)
 
56
            bzrdir = BzrDir.open(location)
56
57
        branch = bzrdir.open_branch()
57
58
        repo = branch.repository
58
59
        branch_config = branch.get_config()