Rev 3558: Fix bug #247585: decode from utf8 to Unicode when giving a commit message in http://bzr.arbash-meinel.com/branches/bzr/jam-integration

John Arbash Meinel john at arbash-meinel.com
Thu Jul 17 17:27:06 BST 2008


At http://bzr.arbash-meinel.com/branches/bzr/jam-integration

------------------------------------------------------------
revno: 3558
revision-id: john at arbash-meinel.com-20080717162645-z7ao0b8u3yprlbzr
parent: pqm at pqm.ubuntu.com-20080717132712-1zbt1asfsuslh1v9
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: jam-integration
timestamp: Thu 2008-07-17 11:26:45 -0500
message:
  Fix bug #247585: decode from utf8 to Unicode when giving a commit message
-------------- next part --------------
=== modified file 'NEWS'
--- a/NEWS	2008-07-17 12:58:30 +0000
+++ b/NEWS	2008-07-17 16:26:45 +0000
@@ -24,6 +24,9 @@
 
   BUG FIXES:
 
+    * Fix a test case that was failing if encoding wasn't UTF-8.
+      (John Arbash Meinel, #247585)
+
 
   DOCUMENTATION:
 

=== modified file 'bzrlib/tests/branch_implementations/test_hooks.py'
--- a/bzrlib/tests/branch_implementations/test_hooks.py	2008-07-04 01:34:44 +0000
+++ b/bzrlib/tests/branch_implementations/test_hooks.py	2008-07-17 16:26:45 +0000
@@ -99,7 +99,8 @@
         tree.lock_write()
         tree.add('')
         for revision_id in revision_ids:
-            tree.commit('Message of ' + revision_id, rev_id=revision_id)
+            tree.commit(u'Message of ' + revision_id.decode('utf8'),
+                        rev_id=revision_id)
         tree.unlock()
         branch = tree.branch
         return branch



More information about the bazaar-commits mailing list