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

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-08-23 01:15:41 UTC
  • mfrom: (7520.1.4 merge-3.1)
  • Revision ID: breezy.the.bot@gmail.com-20200823011541-nv0oh7nzaganx2qy
Merge lp:brz/3.1.

Merged from https://code.launchpad.net/~jelmer/brz/merge-3.1/+merge/389690

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
    BzrError,
39
39
    LockContention,
40
40
    )
41
 
from ..tree import TreeChange
 
41
from ..bzr.inventorytree import InventoryTreeChange
42
42
from . import (
43
43
    TestCase,
44
44
    TestCaseWithTransport,
892
892
 
893
893
    def test_add_file_not_excluded(self):
894
894
        changes = [
895
 
            TreeChange(
 
895
            InventoryTreeChange(
896
896
                'fid', (None, 'newpath'),
897
897
                0, (False, False), ('pid', 'pid'), ('newpath', 'newpath'),
898
898
                ('file', 'file'), (True, True))]
901
901
 
902
902
    def test_add_file_excluded(self):
903
903
        changes = [
904
 
            TreeChange(
 
904
            InventoryTreeChange(
905
905
                'fid', (None, 'newpath'),
906
906
                0, (False, False), ('pid', 'pid'), ('newpath', 'newpath'),
907
907
                ('file', 'file'), (True, True))]
909
909
 
910
910
    def test_delete_file_excluded(self):
911
911
        changes = [
912
 
            TreeChange(
 
912
            InventoryTreeChange(
913
913
                'fid', ('somepath', None),
914
914
                0, (False, None), ('pid', None), ('newpath', None),
915
915
                ('file', None), (True, None))]
917
917
 
918
918
    def test_move_from_or_to_excluded(self):
919
919
        changes = [
920
 
            TreeChange(
 
920
            InventoryTreeChange(
921
921
                'fid', ('oldpath', 'newpath'),
922
922
                0, (False, False), ('pid', 'pid'), ('oldpath', 'newpath'),
923
923
                ('file', 'file'), (True, True))]