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

  • Committer: Robert Collins
  • Date: 2007-10-03 02:10:09 UTC
  • mto: This revision was merged to the branch mainline in revision 2876.
  • Revision ID: robertc@robertcollins.net-20071003021009-daffidrziwpcu9hx
Review feedback.

Show diffs side-by-side

added added

removed removed

Lines of Context:
440
440
        right_shape = Inventory(root_id=None)
441
441
        self.add_dir(right_shape, left_revid, 'root-id', None, '')
442
442
        self.add_link(right_shape, right_revid, 'link-id', 'root-id', 'link',
443
 
            'left-target')
 
443
            'some-target')
444
444
        self.add_dir(right_shape, right_revid, 'subdir-id', 'root-id', 'dir')
445
445
        self.add_file(right_shape, right_revid, 'file-id', 'subdir-id', 'file',
446
446
            '2' * 32, 24)
453
453
            new_shape, new_revid, right_revid)
454
454
 
455
455
    def test_parent_id_changed(self):
456
 
        # test that when the only change to a entry is its parent id changing
 
456
        # test that when the only change to an entry is its parent id changing
457
457
        # that it is handled correctly (that is it keeps the same path)
458
458
        old_revid = 'old-parent'
459
459
        basis_shape = Inventory(root_id=None)
469
469
            new_shape, new_revid)
470
470
 
471
471
    def test_name_changed(self):
472
 
        # test that when the only change to a entry is its name changing
473
 
        # that it is handled correctly (that is it keeps the same parent id)
 
472
        # test that when the only change to an entry is its name changing that
 
473
        # it is handled correctly (that is it keeps the same parent id)
474
474
        old_revid = 'old-parent'
475
475
        basis_shape = Inventory(root_id=None)
476
476
        self.add_dir(basis_shape, old_revid, 'root-id', None, '')