/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/workingtree_implementations/test_workingtree.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-02-15 15:11:31 UTC
  • mfrom: (2230.3.55 branch6)
  • Revision ID: pqm@pqm.ubuntu.com-20070215151131-1f2ce67d76e40200
Provide new branch6 format

Show diffs side-by-side

added added

removed removed

Lines of Context:
285
285
        # and now we can set it to 'A'
286
286
        # because some formats mutate the branch to set it on the tree
287
287
        # we need to alter the branch to let this pass.
288
 
        wt.branch.set_revision_history(['A', 'B'])
 
288
        try:
 
289
            wt.branch.set_revision_history(['A', 'B'])
 
290
        except errors.NoSuchRevision, e:
 
291
            self.assertEqual('B', e.revision)
 
292
            raise TestSkipped("Branch format does not permit arbitrary"
 
293
                              " history")
289
294
        wt.set_last_revision('A')
290
295
        self.assertEqual(['A'], wt.get_parent_ids())
291
296
        self.assertRaises(errors.ReservedId, wt.set_last_revision, 'A:')