~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/send.py

  • Committer: Patch Queue Manager
  • Date: 2011-10-06 08:34:03 UTC
  • mfrom: (6191.2.1 843900-url-nameerror)
  • Revision ID: pqm@pqm.ubuntu.com-20111006083403-jnsw0exlirg01aed
(mbp) error message without traceback on invalid ubuntu/debian url (bug
 843900) (Martin Pool)

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
import time
20
20
 
21
21
from bzrlib import (
22
 
    controldir,
 
22
    bzrdir,
23
23
    errors,
24
24
    osutils,
25
25
    registry,
40
40
def send(submit_branch, revision, public_branch, remember, format,
41
41
         no_bundle, no_patch, output, from_, mail_to, message, body,
42
42
         to_file, strict=None):
43
 
    tree, branch = controldir.ControlDir.open_containing_tree_or_branch(
44
 
        from_)[:2]
 
43
    tree, branch = bzrdir.BzrDir.open_containing_tree_or_branch(from_)[:2]
45
44
    # we may need to write data into branch's repository to calculate
46
45
    # the data to send.
47
46
    branch.lock_write()