/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/tests/test_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:
95
95
    br_a3.fetch(br_a2, br_a.revision_history()[2])
96
96
    # pull the 3 revisions introduced by a@u-0-3
97
97
    br_a3.fetch(br_a2, br_a.revision_history()[3])
98
 
    # InstallFailed should be raised if the branch is missing the revision
 
98
    # NoSuchRevision should be raised if the branch is missing the revision
99
99
    # that was requested.
100
 
    self.assertRaises(errors.InstallFailed, br_a3.fetch, br_a2, 'pizza')
 
100
    self.assertRaises(errors.NoSuchRevision, br_a3.fetch, br_a2, 'pizza')
101
101
 
102
102
    # TODO: Test trying to fetch from a branch that points to a revision not
103
103
    # actually present in its repository.  Not every branch format allows you