/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/interrepository_implementations/test_fetch.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-11-21 22:19:32 UTC
  • mfrom: (3830.3.25 288751-pack-deltas)
  • Revision ID: pqm@pqm.ubuntu.com-20081121221932-44m8c85k5ri8h5hg
(mbp) Fix bug #288751 by teaching fetch to expand to fulltexts if it
        would cause a delta to span repo boundaries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
101
101
        # generally do).
102
102
        try:
103
103
            to_repo.fetch(tree.branch.repository, 'rev-two')
104
 
        except errors.RevisionNotPresent, e:
 
104
        except (errors.BzrCheckError, errors.RevisionNotPresent), e:
105
105
            # If an exception is raised, the revision should not be in the
106
106
            # target.
 
107
            # 
 
108
            # Can also just raise a generic check errors; stream insertion
 
109
            # does this to include all the missing data
107
110
            self.assertRaises((errors.NoSuchRevision, errors.RevisionNotPresent),
108
111
                              to_repo.revision_tree, 'rev-two')
109
112
        else: