/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_add.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:
265
265
        out = self.run_bzr('add')[0]
266
266
        results = sorted(out.rstrip('\n').split('\n'))
267
267
        self.assertEqual(['adding big.txt'], results)
 
268
 
 
269
    def test_add_backslash(self):
 
270
        # pad.lv/165151
 
271
        if os.path.sep == '\\':
 
272
            # TODO(jelmer): Test that backslashes are appropriately
 
273
            # ignored?
 
274
            raise tests.TestNotApplicable(
 
275
                'unable to add filenames with backslashes where '
 
276
                ' it is the path separator')
 
277
        tree = self.make_branch_and_tree('.')
 
278
        self.build_tree(['\\'])
 
279
        self.assertEqual('adding \\\n', self.run_bzr('add \\\\')[0])
 
280
        self.assertEqual('\\\n', self.run_bzr('ls --versioned')[0])