~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_repository.py

  • Committer: Robert Collins
  • Date: 2007-07-30 05:07:02 UTC
  • mto: (2592.5.3 pack-repository)
  • mto: This revision was merged to the branch mainline in revision 2933.
  • Revision ID: robertc@robertcollins.net-20070730050702-lrw04l6d2qokqlf6
Nuke per-fileid indices for a single unified index.

Show diffs side-by-side

added added

removed removed

Lines of Context:
609
609
        tree.commit('foobarbaz')
610
610
        self.assertTrue(trans.has('indices/0.six'))
611
611
 
 
612
    def test_add_revision_creates_zero_dot_tix(self):
 
613
        """Adding a revision makes a 0.tix (Text IndeX) file."""
 
614
        format = self.get_format()
 
615
        tree = self.make_branch_and_tree('.', format=format)
 
616
        trans = tree.branch.repository.bzrdir.get_repository_transport(None)
 
617
        self.assertFalse(trans.has('indices/0.tix'))
 
618
        tree.commit('foobarbaz')
 
619
        self.assertTrue(trans.has('indices/0.tix'))
 
620
 
612
621
    def test_pulling_nothing_leads_to_no_new_names(self):
613
622
        format = self.get_format()
614
623
        tree1 = self.make_branch_and_tree('1', format=format)
617
626
        trans = tree1.branch.repository.bzrdir.get_repository_transport(None)
618
627
        self.assertFalse(trans.has('indices/0.rix'))
619
628
        self.assertFalse(trans.has('indices/0.six'))
 
629
        self.assertFalse(trans.has('indices/0.tix'))
620
630
        names = FileNames(trans.clone('indices'), 'index')
621
631
        names.load()
622
632
        self.assertEqual(set(), names.names())