~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_commit.py

  • Committer: John Arbash Meinel
  • Date: 2006-06-30 17:25:27 UTC
  • mto: (1711.4.39 win32-accepted)
  • mto: This revision was merged to the branch mainline in revision 1836.
  • Revision ID: john@arbash-meinel.com-20060630172527-6d36c06a13dc7110
always close files, minor PEP8 cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
287
287
        # version or the u2 version.
288
288
        self.build_tree_contents([('u1/hosts', 'merge resolution\n')])
289
289
        self.run_bzr('commit', '-m', 'checkin merge of the offline work from u1', 'u1')
290
 
 
291
 
    def test_commit_respects_spec_for_removals(self):
292
 
        """Commit with a file spec should only commit removals that match"""
293
 
        t = self.make_branch_and_tree('.')
294
 
        self.build_tree(['file-a', 'dir-a/', 'dir-a/file-b'])
295
 
        t.add(['file-a', 'dir-a', 'dir-a/file-b'])
296
 
        t.commit('Create')
297
 
        t.remove(['file-a', 'dir-a/file-b'])
298
 
        os.chdir('dir-a')
299
 
        result = self.run_bzr('commit', '.', '-m' 'removed file-b')[1]
300
 
        self.assertNotContainsRe(result, 'file-a')
301
 
        result = self.run_bzr('status')[0]
302
 
        self.assertContainsRe(result, 'removed:\n  file-a')