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

  • Committer: Jelmer Vernooij
  • Date: 2019-06-29 21:31:14 UTC
  • mto: This revision was merged to the branch mainline in revision 7390.
  • Revision ID: jelmer@jelmer.uk-20190629213114-ux6f3xcof8olitvr
Don't make TreeChange tuple-like objects anymore, so we can add and remove attributes as necessary.

Show diffs side-by-side

added added

removed removed

Lines of Context:
158
158
        tree.lock_read()
159
159
        self.addCleanup(tree.unlock)
160
160
        changes = list(tree.iter_changes(tree.basis_tree()))
161
 
        self.assertEqual([(None, 'b'), (None, 'c')], [c[1] for c in changes])
 
161
        self.assertEqual([(None, 'b'), (None, 'c')], [c.path for c in changes])
162
162
 
163
163
    def test_commit_exclude_subtree_of_selected(self):
164
164
        tree = self.make_branch_and_tree('.')
170
170
        self.addCleanup(tree.unlock)
171
171
        changes = list(tree.iter_changes(tree.basis_tree()))
172
172
        self.assertEqual(1, len(changes))
173
 
        self.assertEqual((None, 'a/b'), changes[0][1])
 
173
        self.assertEqual((None, 'a/b'), changes[0].path)
174
174
 
175
175
    def test_commit_sets_last_revision(self):
176
176
        tree = self.make_branch_and_tree('tree')