Merge lp:~hid-iwata/bzr-svn/fix-795994 into lp:bzr-svn/1.1

Proposed by IWATA Hidetaka
Status: Merged
Merged at revision: 3788
Proposed branch: lp:~hid-iwata/bzr-svn/fix-795994
Merge into: lp:bzr-svn/1.1
Diff against target: 44 lines (+18/-1)
2 files modified
commit.py (+1/-1)
tests/test_commit.py (+17/-0)
To merge this branch: bzr merge lp:~hid-iwata/bzr-svn/fix-795994
Reviewer Review Type Date Requested Status
Jelmer Vernooij (community) Approve
Review via email: mp+70211@code.launchpad.net

Description of the change

test and fix for #795994

To post a comment you must log in.
Revision history for this message
Jelmer Vernooij (jelmer) :
review: Approve
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Thanks! Nice work.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'commit.py'
--- commit.py 2011-07-22 21:53:07 +0000
+++ commit.py 2011-08-02 19:36:36 +0000
@@ -365,7 +365,7 @@
365 child_base = (base_tree, base_url, base_revnum)365 child_base = (base_tree, base_url, base_revnum)
366 # open if they existed at the same location and366 # open if they existed at the same location and
367 # the directory was touched367 # the directory was touched
368 elif new_child_path in visit_dirs:368 elif new_child_path.decode('utf-8') in visit_dirs:
369 trace.mutter('open dir %r', new_child_path)369 trace.mutter('open dir %r', new_child_path)
370370
371 child_editor = dir_editor.open_directory(371 child_editor = dir_editor.open_directory(
372372
=== modified file 'tests/test_commit.py'
--- tests/test_commit.py 2011-07-30 12:52:04 +0000
+++ tests/test_commit.py 2011-08-02 19:36:36 +0000
@@ -374,6 +374,22 @@
374 self.assertEqual(2, result.old_revno)374 self.assertEqual(2, result.old_revno)
375 self.assertEquals(3, result.new_revno)375 self.assertEquals(3, result.new_revno)
376376
377 def test_add_file_to_unicode_folder(self):
378 self.requireFeature(UnicodeFilenameFeature)
379 self.build_tree({u'dc/I²C/': None})
380 wt = self.newdir.open_workingtree()
381 wt.add(u'I²C')
382 wt.commit(message="Commit from Bzr")
383 self.build_tree({u'dc/I²C/file': 'data'})
384 wt.add(u'I²C/file')
385 wt.commit(message="Commit from Bzr2")
386 result = self.olddir.open_branch().pull(self.newdir.open_branch())
387 self.assertEquals(2, result.old_revno)
388 self.assertEquals(4, result.new_revno)
389 owt = self.olddir.open_workingtree()
390 owt.update()
391 self.assertTrue(owt.has_filename(u'I²C/file'))
392
377 def test_rename_from_unicode_filename(self):393 def test_rename_from_unicode_filename(self):
378 self.requireFeature(UnicodeFilenameFeature)394 self.requireFeature(UnicodeFilenameFeature)
379 self.build_tree({u'dc/I²C': 'other data'})395 self.build_tree({u'dc/I²C': 'other data'})
@@ -802,3 +818,4 @@
802 editor = SendPropChangesTests.RecordingFileEditor()818 editor = SendPropChangesTests.RecordingFileEditor()
803 file_editor_send_prop_changes(ie1, ie2, editor)819 file_editor_send_prop_changes(ie1, ie2, editor)
804 self.assertEquals(editor._props, {})820 self.assertEquals(editor._props, {})
821

Subscribers

People subscribed via source and target branches