incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tvansteenbu...@apache.org
Subject git commit: [#4953] Handle non-utf-8 encoded commit msgs
Date Thu, 17 Jan 2013 16:16:43 GMT
Updated Branches:
  refs/heads/tv/4953 [created] e5ec62b3e


[#4953] Handle non-utf-8 encoded commit msgs


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/e5ec62b3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/e5ec62b3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/e5ec62b3

Branch: refs/heads/tv/4953
Commit: e5ec62b3e6ab9223c10eb07e53fd2c0dedb47b2a
Parents: a236314
Author: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Authored: Thu Jan 17 16:16:12 2013 +0000
Committer: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Committed: Thu Jan 17 16:16:12 2013 +0000

----------------------------------------------------------------------
 ForgeSVN/forgesvn/model/svn.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/e5ec62b3/ForgeSVN/forgesvn/model/svn.py
----------------------------------------------------------------------
diff --git a/ForgeSVN/forgesvn/model/svn.py b/ForgeSVN/forgesvn/model/svn.py
index 13f30a6..4228b50 100644
--- a/ForgeSVN/forgesvn/model/svn.py
+++ b/ForgeSVN/forgesvn/model/svn.py
@@ -299,14 +299,14 @@ class SVNImplementation(M.RepositoryImplementation):
         if hasattr(log_entry, 'date'):
             log_date = datetime.utcfromtimestamp(log_entry.date)
         user = Object(
-            name=log_entry.get('author', '--none--'),
+            name=h.really_unicode(log_entry.get('author', '--none--')),
             email='',
            date=log_date)
         args = dict(
             tree_id=None,
             committed=user,
             authored=user,
-            message=log_entry.get("message", "--none--"),
+            message=h.really_unicode(log_entry.get("message", "--none--")),
             parent_ids=[],
             child_ids=[])
         if revno > 1:


Mime
View raw message