convert: Do not abort with TypeError if svn commit message is None (issue934)
authorThomas Arendsen Hein <thomas@intevation.de>
Mon, 21 Jan 2008 21:44:16 +0100
changeset 5916 b6deda0f69fa
parent 5883 a893610f6f0c
child 5917 a8dbfa1802cd
convert: Do not abort with TypeError if svn commit message is None (issue934)
hgext/convert/subversion.py
--- a/hgext/convert/subversion.py	Mon Jan 21 10:04:35 2008 +0100
+++ b/hgext/convert/subversion.py	Mon Jan 21 21:44:16 2008 +0100
@@ -597,7 +597,7 @@
             # '2007-01-04T17:35:00.902377Z'
             date = util.parsedate(date[:19] + " UTC", ["%Y-%m-%dT%H:%M:%S"])
 
-            log = message and self.recode(message)
+            log = message and self.recode(message) or ''
             author = author and self.recode(author) or ''
             try:
                 branch = self.module.split("/")[-1]