/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/fetch.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-05-01 08:51:03 UTC
  • mfrom: (4316.1.7 such-a-shame)
  • Revision ID: pqm@pqm.ubuntu.com-20090501085103-kq2uocvhxzjex06k
(jml) Raise NoSuchRevision from fetch, instead of InstallFailed

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
    errors,
31
31
    symbol_versioning,
32
32
    )
33
 
from bzrlib.errors import InstallFailed
34
 
from bzrlib.progress import ProgressPhase
35
33
from bzrlib.revision import NULL_REVISION
36
34
from bzrlib.tsort import topo_sort
37
35
from bzrlib.trace import mutter
170
168
        if self._last_revision is NULL_REVISION:
171
169
            # explicit limit of no revisions needed
172
170
            return None
173
 
        try:
174
 
            return self.to_repository.search_missing_revision_ids(
175
 
                self.from_repository, self._last_revision,
176
 
                find_ghosts=self.find_ghosts)
177
 
        except errors.NoSuchRevision, e:
178
 
            raise InstallFailed([self._last_revision])
 
171
        return self.to_repository.search_missing_revision_ids(
 
172
            self.from_repository, self._last_revision,
 
173
            find_ghosts=self.find_ghosts)
179
174
 
180
175
    def _parent_inventories(self, revision_ids):
181
176
        # Find all the parent revisions referenced by the stream, but