~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/fetch.py

  • Committer: Robert Collins
  • Date: 2005-10-10 21:52:15 UTC
  • Revision ID: robertc@robertcollins.net-20051010215215-6ff59a09c2f7b6b7
lock during fetch, which is a separate code path to the special case of cloning

Show diffs side-by-side

added added

removed removed

Lines of Context:
103
103
            self.pb = bzrlib.ui.ui_factory.progress_bar()
104
104
        else:
105
105
            self.pb = pb
 
106
        self.from_branch.lock_read()
106
107
        try:
107
108
            self._fetch_revisions(last_revision)
108
109
        finally:
 
110
            self.from_branch.unlock()
109
111
            self.pb.clear()
110
112
 
111
113
    def _fetch_revisions(self, last_revision):