/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 breezy/tests/per_workingtree/test_add.py

  • Committer: Jelmer Vernooij
  • Date: 2019-06-29 13:16:26 UTC
  • mto: This revision was merged to the branch mainline in revision 7376.
  • Revision ID: jelmer@jelmer.uk-20190629131626-qioafloyemhdbm4w
Remove Tree.get_root_id() in favour of Tree.path2id('').

Show diffs side-by-side

added added

removed removed

Lines of Context:
103
103
        tree.add(['dir'], [b'dir-id'])
104
104
        tree.add(['dir/subdir'], [b'subdir-id'])
105
105
        tree.add(['dir/subdir/foo'], [b'foo-id'])
106
 
        root_id = tree.get_root_id()
 
106
        root_id = tree.path2id('')
107
107
 
108
108
        self.assertTreeLayout([('', root_id), ('dir/', b'dir-id'),
109
109
                               ('dir/subdir/', b'subdir-id'),
136
136
        tree.add(['a', 'b', 'dir', 'dir/subdir', 'dir/subdir/foo'],
137
137
                 [b'a-id', b'b-id', b'dir-id', b'subdir-id', b'foo-id'])
138
138
 
139
 
        self.assertTreeLayout([('', tree.get_root_id()), ('a', b'a-id'), ('b', b'b-id'),
 
139
        self.assertTreeLayout([('', tree.path2id('')), ('a', b'a-id'), ('b', b'b-id'),
140
140
                               ('dir/', b'dir-id'), ('dir/subdir/', b'subdir-id'),
141
141
                               ('dir/subdir/foo', b'foo-id')], tree)
142
142