Rev 420: handle unicode characters in commit messages. (#85551). in file:///home/jelmer/bzr-svn/0.3/
Jelmer Vernooij
jelmer at samba.org
Sun Mar 11 23:20:10 GMT 2007
At file:///home/jelmer/bzr-svn/0.3/
------------------------------------------------------------
revno: 420
revision-id: jelmer at samba.org-20070311231857-oadyn73j674c3u1f
parent: jelmer at samba.org-20070311225839-b1vmok87wjge8y7x
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.3
timestamp: Mon 2007-03-12 00:18:57 +0100
message:
handle unicode characters in commit messages. (#85551).
Was already fixed in a jelmer at samba.org-20070311011931-ybkbi14bf2lykzv0.
This commit just adds a test and a news entry.
modified:
NEWS news-20061231030336-h9fhq245ie0de8bs-1
tests/test_commit.py test_commit.py-20060624213521-l5kcufywkh9mnilk-1
=== modified file 'NEWS'
--- a/NEWS 2007-03-11 22:58:39 +0000
+++ b/NEWS 2007-03-11 23:18:57 +0000
@@ -7,6 +7,8 @@
* Check for parent paths moving as well in LogWalker.find_latest_change().
Fixes #84087.
+ * Handle unicode characters in commit messages. Fixes #85551.
+
bzr-svn 0.3.1 2007-01-31
BUG FIXES
=== modified file 'tests/test_commit.py'
--- a/tests/test_commit.py 2007-03-11 01:58:48 +0000
+++ b/tests/test_commit.py 2007-03-11 23:18:57 +0000
@@ -59,6 +59,20 @@
self.assertEqual(wt.branch.last_revision(), new_revision.revision_id)
self.assertEqual("data", new_revision.message)
+ def test_commit_message_nordic(self):
+ repos_url = self.make_client('d', 'dc')
+ self.build_tree({'dc/foo/bla': "data"})
+ self.client_add("dc/foo")
+ wt = WorkingTree.open("dc")
+ self.assertEqual(
+ wt.branch.generate_revision_id(1), wt.commit(message=u"\xe6\xf8\xe5"))
+ self.assertEqual(
+ wt.branch.generate_revision_id(1), wt.branch.last_revision())
+ new_revision = wt.branch.repository.get_revision(
+ wt.branch.last_revision())
+ self.assertEqual(wt.branch.last_revision(), new_revision.revision_id)
+ self.assertEqual(u"\xe6\xf8\xe5", new_revision.message.decode("utf-8"))
+
def test_commit_update(self):
repos_url = self.make_client('d', 'dc')
self.build_tree({'dc/foo/bla': "data"})
More information about the bazaar-commits
mailing list