~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/lockdir.py

  • Committer: Andrew Bennetts
  • Date: 2008-09-14 10:13:42 UTC
  • mto: This revision was merged to the branch mainline in revision 3756.
  • Revision ID: andrew.bennetts@canonical.com-20080914101342-rxhap01kw4tqx2k3
A couple more lazy imports, helps 'bzr log --line -r -1' a little.

Show diffs side-by-side

added added

removed removed

Lines of Context:
105
105
 
106
106
import os
107
107
import time
108
 
from cStringIO import StringIO
109
108
 
110
109
from bzrlib import (
111
110
    debug,
124
123
        PathError,
125
124
        ResourceBusy,
126
125
        TransportError,
127
 
        UnlockableTransport,
128
126
        )
129
127
from bzrlib.trace import mutter, note
130
 
from bzrlib.transport import Transport
131
 
from bzrlib.osutils import rand_chars, format_delta, get_host_name
 
128
from bzrlib.osutils import rand_chars, get_host_name
 
129
import bzrlib.ui
 
130
 
 
131
from bzrlib.lazy_import import lazy_import
 
132
lazy_import(globals(), """
132
133
from bzrlib.rio import read_stanza, Stanza
133
 
import bzrlib.ui
134
 
 
 
134
""")
135
135
 
136
136
# XXX: At the moment there is no consideration of thread safety on LockDir
137
137
# objects.  This should perhaps be updated - e.g. if two threads try to take a