200
200
self.failUnlessExists('a')
201
201
self.assertEqual('r?ksm?rg?s/????2.txt => a\n', txt)
203
def test_branch(self):
204
# We should be able to branch into a directory that
205
# has a unicode name, even if we can't display the name
206
bzr = self.run_bzr_decode
208
bzr('branch', u'.', _shrimp_sandwich)
210
bzr('branch', u'.', _shrimp_sandwich + '2', encoding='ascii')
213
# Make sure we can pull from paths that can't be encoded
214
bzr = self.run_bzr_decode
216
bzr('branch', '.', _shrimp_sandwich)
217
bzr('branch', _shrimp_sandwich, _shrimp_sandwich + '2')
219
os.chdir(_shrimp_sandwich)
220
open('a', 'ab').write('more text\n')
221
bzr('commit', '-m', 'mod a')
225
os.chdir('../' + _shrimp_sandwich + '2')
228
self.assertEqual(u'Using saved location: %s\n' % (pwd,), txt)
230
os.chdir('../' + _shrimp_sandwich)
231
open('a', 'ab').write('and yet more\n')
232
bzr('commit', '-m', 'modifying a by ' + _erik)
234
os.chdir('../' + _shrimp_sandwich + '2')
235
# We should be able to pull, even if our encoding is bad
236
bzr('pull', '--verbose', encoding='ascii')