~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/fetch.py

  • Committer: Robert Collins
  • Date: 2005-10-11 02:52:47 UTC
  • mfrom: (1417.1.13)
  • Revision ID: robertc@robertcollins.net-20051011025247-4b95466bb6509385
merge in revision-history caching, and tuning of fetch to not retrieve more data than needed when nothing needs to be pulled

Show diffs side-by-side

added added

removed removed

Lines of Context:
118
118
            raise InstallFailed([last_revision])
119
119
        mutter('fetch up to rev {%s}', self.last_revision)
120
120
        try:
 
121
            if self.last_revision is not None:
 
122
                self.to_branch.get_revision(self.last_revision)
 
123
                return
 
124
        except NoSuchRevision:
 
125
            pass
 
126
        try:
121
127
            revs_to_fetch = self._compare_ancestries()
122
128
        except WeaveError:
123
129
            raise InstallFailed([self.last_revision])