~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/fetch.py

Clean up the lock.py code to use less indenting, and conform to better coding practise.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
from bzrlib.trace import mutter
45
45
import bzrlib.ui
46
46
 
47
 
from bzrlib.lazy_import import lazy_import
48
47
 
49
48
# TODO: Avoid repeatedly opening weaves so many times.
50
49
 
92
91
        if to_repository.control_files._transport.base == from_repository.control_files._transport.base:
93
92
            # check that last_revision is in 'from' and then return a no-operation.
94
93
            if last_revision not in (None, NULL_REVISION):
95
 
                to_repository.get_revision(last_revision)
 
94
                from_repository.get_revision(last_revision)
96
95
            return
97
96
        self.to_repository = to_repository
98
97
        self.from_repository = from_repository