/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/git/tests/test_workingtree.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2019-09-21 16:35:59 UTC
  • mfrom: (7358.11.10 delta-no-file-ids)
  • Revision ID: breezy.the.bot@gmail.com-20190921163559-inw7zv0fg2j35h68
TreeDelta holds TreeChange objects rather than tuples of various sizes.

Merged from https://code.launchpad.net/~jelmer/brz/delta-no-file-ids/+merge/369480

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
    workingtree as _mod_workingtree,
36
36
    )
37
37
from ...delta import TreeDelta
 
38
from ...tree import TreeChange
38
39
from ..mapping import (
39
40
    default_mapping,
40
41
    )
140
141
 
141
142
    def test_missing(self):
142
143
        delta = TreeDelta()
143
 
        delta.removed.append(('a', b'git:a', 'file'))
 
144
        delta.removed.append(TreeChange(b'git:a', ('a', 'a'), False, (True, True), (b'TREE_ROOT', b'TREE_ROOT'), ('a', 'a'), ('file', None), (True, False)))
144
145
        changes = [((b'a', b'a'), (stat.S_IFREG | 0o755, 0),
145
146
                    (b'a' * 40, b'a' * 40))]
146
147
        self.assertEqual(