/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: 2008-07-29 09:32:50 UTC
  • mfrom: (3582.1.6 check_compatible)
  • Revision ID: pqm@pqm.ubuntu.com-20080729093250-b1g7zu2k1pj0mswe
(mbp) Better message about incompatible repositories

Show diffs side-by-side

added added

removed removed

Lines of Context:
170
170
        knit3_tree = self.make_branch_and_tree('knit3',
171
171
            format='dirstate-with-subtree')
172
172
        knit3_tree.commit('blah')
173
 
        self.assertRaises(errors.IncompatibleRepositories,
174
 
                          knit_tree.branch.fetch, knit3_tree.branch)
 
173
        e = self.assertRaises(errors.IncompatibleRepositories,
 
174
                              knit_tree.branch.fetch, knit3_tree.branch)
 
175
        self.assertContainsRe(str(e),
 
176
            r"(?m).*/knit.*\nis not compatible with\n.*/knit3/.*\n"
 
177
            r"different rich-root support")
175
178
 
176
179
 
177
180
class TestMergeFetch(TestCaseWithTransport):