~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_repository.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-11-30 22:56:29 UTC
  • mfrom: (3052.1.7 is_ancestor_fix)
  • Revision ID: pqm@pqm.ubuntu.com-20071130225629-sovkf7a4lksj1z4g
(John Arbash Meinel) deprecate bzrlib.revision.is_ancestor,
        and special case Graph.is_ancestor for NULL_REVISION

Show diffs side-by-side

added added

removed removed

Lines of Context:
1195
1195
        repo = self.make_repository('.', format=format)
1196
1196
        packs = repo._pack_collection
1197
1197
        self.assertEqual([0], packs.pack_distribution(0))
1198
 
        
 
1198
 
 
1199
    def test_ensure_loaded_unlocked(self):
 
1200
        format = self.get_format()
 
1201
        repo = self.make_repository('.', format=format)
 
1202
        self.assertRaises(errors.ObjectNotLocked,
 
1203
                          repo._pack_collection.ensure_loaded)
 
1204
 
1199
1205
    def test_pack_distribution_one_to_nine(self):
1200
1206
        format = self.get_format()
1201
1207
        repo = self.make_repository('.', format=format)