~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 03:42:29 UTC
  • Revision ID: robertc@robertcollins.net-20051010034229-f73abf6311a88366
merge Gustavos executable2 patch

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()
107
106
        try:
108
107
            self._fetch_revisions(last_revision)
109
108
        finally:
110
 
            self.from_branch.unlock()
111
109
            self.pb.clear()
112
110
 
113
111
    def _fetch_revisions(self, last_revision):
117
115
            mutter('failed getting last revision: %s', e)
118
116
            raise InstallFailed([last_revision])
119
117
        mutter('fetch up to rev {%s}', self.last_revision)
120
 
        if (self.last_revision is not None and 
121
 
            self.to_branch.has_revision(self.last_revision)):
122
 
            return
123
118
        try:
124
119
            revs_to_fetch = self._compare_ancestries()
125
120
        except WeaveError: