Rev 421: Fix push instance of #85551 as well. in file:///home/jelmer/bzr-svn/0.3/
Jelmer Vernooij
jelmer at samba.org
Sun Mar 11 23:29:42 GMT 2007
At file:///home/jelmer/bzr-svn/0.3/
------------------------------------------------------------
revno: 421
revision-id: jelmer at samba.org-20070311232925-2nc3xpxxmoftgbyi
parent: jelmer at samba.org-20070311231857-oadyn73j674c3u1f
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.3
timestamp: Mon 2007-03-12 00:29:25 +0100
message:
Fix push instance of #85551 as well.
modified:
commit.py commit.py-20060607190346-qvq128wgfubhhgm2-1
tests/test_commit.py test_commit.py-20060624213521-l5kcufywkh9mnilk-1
=== modified file 'commit.py'
--- a/commit.py 2007-01-14 23:38:09 +0000
+++ b/commit.py 2007-03-11 23:29:25 +0000
@@ -292,7 +292,7 @@
mutter('obtaining commit editor')
self.editor, editor_baton = self.repository.transport.get_commit_editor(
- message, done, None, False)
+ message.encode("utf-8"), done, None, False)
if self.branch.last_revision() is None:
self.base_revnum = 0
=== modified file 'tests/test_commit.py'
--- a/tests/test_commit.py 2007-03-11 23:18:57 +0000
+++ b/tests/test_commit.py 2007-03-11 23:29:25 +0000
@@ -207,6 +207,19 @@
self.assertEqual("Commit from Bzr",
repos.get_revision(repos.generate_revision_id(2, "")).message)
+ def test_message_nordic(self):
+ self.build_tree({'dc/file': 'data'})
+ wt = self.newdir.open_workingtree()
+ wt.add('file')
+ wt.commit(message=u"\xe6\xf8\xe5")
+
+ self.olddir.open_branch().pull(self.newdir.open_branch())
+
+ repos = self.olddir.find_repository()
+ self.assertEqual(u"\xe6\xf8\xe5",
+ repos.get_revision(repos.generate_revision_id(2, "")).message.decode("utf-8"))
+
+
def test_multiple(self):
self.build_tree({'dc/file': 'data'})
wt = self.newdir.open_workingtree()
More information about the bazaar-commits
mailing list