/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 bzrlib/tests/test_workingtree_4.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-09-21 03:13:26 UTC
  • mfrom: (2841.1.1 ianc-integration2)
  • Revision ID: pqm@pqm.ubuntu.com-20070921031326-72zmv08871klgb61
Make WorkingTree.rename_one honour our normalisation requirements (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
419
419
        tree.add(['b'], ['b-id'])
420
420
 
421
421
        try:
422
 
            tree.rename_one('a', u'b\xb5rry')
423
 
            new_path = u'b\xb5rry'
 
422
            new_path = u'b\u03bcrry'
 
423
            tree.rename_one('a', new_path)
424
424
        except UnicodeEncodeError:
425
425
            # support running the test on non-unicode platforms
426
 
            tree.rename_one('a', 'c')
427
426
            new_path = 'c'
 
427
            tree.rename_one('a', new_path)
428
428
        self.assertEqual(new_path, tree.id2path('a-id'))
429
429
        tree.commit(u'b\xb5rry')
430
430
        tree.unversion(['a-id'])