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

  • Committer: Jelmer Vernooij
  • Date: 2017-11-12 17:14:28 UTC
  • mfrom: (6809.3.1 trunk)
  • Revision ID: jelmer@jelmer.uk-20171112171428-3ruwdz9rc112cdcw
Merge lp:~jelmer/brz/escape-more

Show diffs side-by-side

added added

removed removed

Lines of Context:
130
130
        out, err = self.run_bzr('commit -m modified')
131
131
        self.assertEqual('', out)
132
132
        self.assertContainsRe(err, '^Committing to: .*\n'
133
 
                              'modified hello\.txt\n'
134
 
                              'Committed revision 2\.\n$')
 
133
                              'modified hello\\.txt\n'
 
134
                              'Committed revision 2\\.\n$')
135
135
 
136
136
    def test_unicode_commit_message_is_filename(self):
137
137
        """Unicode commit message same as a filename (Bug #563646).
203
203
        out, err = self.run_bzr('commit -m renamed')
204
204
        self.assertEqual('', out)
205
205
        self.assertContainsRe(err, '^Committing to: .*\n'
206
 
                              'renamed hello\.txt => gutentag\.txt\n'
207
 
                              'Committed revision 2\.$\n')
 
206
                              'renamed hello\\.txt => gutentag\\.txt\n'
 
207
                              'Committed revision 2\\.$\n')
208
208
 
209
209
    def test_verbose_commit_moved(self):
210
210
        # Verbose commit of file moved to new directory should say so
231
231
        out, err = self.run_bzr('commit -m added')
232
232
        self.assertEqual('', out)
233
233
        self.assertContainsRe(err, '^Committing to: .*\n'
234
 
                              'added hello\.txt\n'
235
 
                              'Committed revision 1\.\n$')
 
234
                              'added hello\\.txt\n'
 
235
                              'Committed revision 1\\.\n$')
236
236
 
237
237
    def test_verbose_commit_with_unchanged(self):
238
238
        """Unchanged files should not be listed by default in verbose output"""
244
244
        out, err = self.run_bzr('commit -m added')
245
245
        self.assertEqual('', out)
246
246
        self.assertContainsRe(err, '^Committing to: .*\n'
247
 
                              'added hello\.txt\n'
248
 
                              'Committed revision 2\.$\n')
 
247
                              'added hello\\.txt\n'
 
248
                              'Committed revision 2\\.$\n')
249
249
 
250
250
    def test_verbose_commit_includes_master_location(self):
251
251
        """Location of master is displayed when committing to bound branch"""
530
530
            'commit -m hello --fixes=lp:23452 tree/hello.txt')
531
531
        self.assertEqual('', output)
532
532
        self.assertContainsRe(err, 'Committing to: .*\n'
533
 
                              'added hello\.txt\n'
534
 
                              'Committed revision 1\.\n')
 
533
                              'added hello\\.txt\n'
 
534
                              'Committed revision 1\\.\n')
535
535
 
536
536
    def test_fixes_bug_unicode(self):
537
537
        """commit --fixes=lp:unicode succeeds without output."""