/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_workingtree.py

  • Committer: Aaron Bentley
  • Date: 2007-02-21 06:06:06 UTC
  • mto: (2255.6.1 dirstate)
  • mto: This revision was merged to the branch mainline in revision 2322.
  • Revision ID: aaron.bentley@utoronto.ca-20070221060606-unjaailciijp12ab
rename working tree format 4 to AB1 everywhere

Show diffs side-by-side

added added

removed removed

Lines of Context:
220
220
        self.assertEqual([], tree.get_parent_ids())
221
221
 
222
222
 
223
 
class TestWorkingTreeFormat4(TestCaseWithTransport):
 
223
class TestWorkingTreeFormatAB1(TestCaseWithTransport):
224
224
    """Tests specific to WorkingTreeFormat3."""
225
225
 
226
226
    def test_disk_layout(self):
227
227
        tree = self.make_branch_and_tree('.', format='experimental-knit3')
228
228
        control = tree.bzrdir
229
229
        # we want:
230
 
        # format 'Bazaar-NG Working Tree format 4'
 
230
        # format 'Bazaar-NG Working Tree format AB1'
231
231
        # inventory = 1 entry for root
232
232
        # pending-merges = ''
233
233
        # no inventory.basis yet
234
234
        t = control.get_workingtree_transport(None)
235
 
        self.assertEqualDiff('Bazaar-NG Working Tree format 4',
 
235
        self.assertEqualDiff('Bazaar-NG Working Tree format AB1',
236
236
                             t.get('format').read())
237
237
        self.assertContainsRe(t.get('inventory').read(), 
238
238
                              '<inventory format="7">\n'
255
255
    
256
256
    def test_incompatible_repo(self):
257
257
        control = bzrdir.format_registry.make_bzrdir('knit')
258
 
        control.workingtree_format = workingtree.WorkingTreeFormat4()
 
258
        control.workingtree_format = workingtree.WorkingTreeFormatAB1()
259
259
        tree = self.make_branch_and_tree('.', format=control)
260
260
        self.assertRaises(errors.RootNotRich, tree.commit)
261
261