/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: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2019-09-21 19:00:56 UTC
  • mfrom: (7358.16.4 tree-change-without-file-id)
  • Revision ID: breezy.the.bot@gmail.com-20190921190056-6ti43ngs2vpo8obd
Don't make TreeChange tuple-like objects anymore, so we can add and remove attributes as necessary.

Merged from https://code.launchpad.net/~jelmer/brz/tree-change-without-file-id/+merge/369484

Show diffs side-by-side

added added

removed removed

Lines of Context:
155
155
        tree.lock_read()
156
156
        self.addCleanup(tree.unlock)
157
157
        changes = list(tree.iter_changes(tree.basis_tree()))
158
 
        self.assertEqual([(None, 'b'), (None, 'c')], [c[1] for c in changes])
 
158
        self.assertEqual([(None, 'b'), (None, 'c')], [c.path for c in changes])
159
159
 
160
160
    def test_commit_exclude_subtree_of_selected(self):
161
161
        tree = self.make_branch_and_tree('.')
167
167
        self.addCleanup(tree.unlock)
168
168
        changes = list(tree.iter_changes(tree.basis_tree()))
169
169
        self.assertEqual(1, len(changes))
170
 
        self.assertEqual((None, 'a/b'), changes[0][1])
 
170
        self.assertEqual((None, 'a/b'), changes[0].path)
171
171
 
172
172
    def test_commit_sets_last_revision(self):
173
173
        tree = self.make_branch_and_tree('tree')