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

  • Committer: Jelmer Vernooij
  • Date: 2019-06-02 02:35:46 UTC
  • mfrom: (7309 work)
  • mto: This revision was merged to the branch mainline in revision 7319.
  • Revision ID: jelmer@jelmer.uk-20190602023546-lqco868tnv26d8ow
merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
        self.build_tree(['six'])
66
66
 
67
67
        verify_status(self, wt,
68
 
                          ['unknown:\n',
69
 
                           '  a-fifo\n',
70
 
                           '  six\n'
71
 
                           ])
 
68
                      ['unknown:\n',
 
69
                       '  a-fifo\n',
 
70
                       '  six\n'
 
71
                       ])
72
72
 
73
73
        # We should raise an error if we are adding a bogus file
74
74
        self.assertRaises(errors.BadFileKindError, wt.smart_add, ['a-fifo'])
75
75
 
76
76
        # And the list of files shouldn't have been modified
77
77
        verify_status(self, wt,
78
 
                          ['unknown:\n',
79
 
                           '  a-fifo\n',
80
 
                           '  six\n'
81
 
                           ])
 
78
                      ['unknown:\n',
 
79
                       '  a-fifo\n',
 
80
                       '  six\n'
 
81
                       ])
82
82
 
83
83
        # Make sure smart_add can handle having a bogus
84
84
        # file in the way
85
85
        wt.smart_add([])
86
86
        verify_status(self, wt,
87
 
                          ['added:\n',
88
 
                           '  six\n',
89
 
                           'unknown:\n',
90
 
                           '  a-fifo\n',
91
 
                           ])
 
87
                      ['added:\n',
 
88
                       '  six\n',
 
89
                       'unknown:\n',
 
90
                       '  a-fifo\n',
 
91
                       ])
92
92
        wt.commit("Commit four", rev_id=b"a@u-0-3")
93
93
 
94
94
        verify_status(self, wt,
95
 
                          ['unknown:\n',
96
 
                           '  a-fifo\n',
97
 
                           ])
 
95
                      ['unknown:\n',
 
96
                       '  a-fifo\n',
 
97
                       ])