/breezy/trunk

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy/trunk

« back to all changes in this revision

Viewing changes to breezy/tests/blackbox/test_remove.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-11-17 19:05:13 UTC
  • mfrom: (7121.2.2 backslash-support)
  • Revision ID: breezy.the.bot@gmail.com-20181117190513-mktc25th4dc28qg5
Support adding files with filenames that are just a backslash on
platforms where it is not the path separator.

Merged from https://code.launchpad.net/~jelmer/brz/backslash-support/+merge/355135

Show diffs side-by-side

added added

removed removed

Lines of Context:
274
274
                     error_regexes=["removed a", "removed b", "removed b/c"])
275
275
        tree = WorkingTree.open('.')
276
276
        self.assertFilesUnversioned(files)
 
277
 
 
278
    def test_remove_backslash(self):
 
279
        # pad.lv/176263
 
280
        if os.path.sep == '\\':
 
281
            raise tests.TestNotApplicable(
 
282
                'unable to add filenames with backslashes where '
 
283
                ' it is the path separator')
 
284
        tree = self.make_branch_and_tree('.')
 
285
        self.build_tree(['\\'])
 
286
        self.assertEqual('adding \\\n', self.run_bzr('add \\\\')[0])
 
287
        self.assertEqual('\\\n', self.run_bzr('ls --versioned')[0])
 
288
        self.assertEqual('', self.run_bzr('rm \\\\')[0])
 
289
        self.assertEqual('', self.run_bzr('ls --versioned')[0])