comparison hgext/convert/subversion.py @ 5916:b6deda0f69fa

convert: Do not abort with TypeError if svn commit message is None (issue934)
author Thomas Arendsen Hein <thomas@intevation.de>
date Mon, 21 Jan 2008 21:44:16 +0100
parents a893610f6f0c
children 549a7ebe1607
comparison
equal deleted inserted replaced
5883:a893610f6f0c 5916:b6deda0f69fa
595 # Example SVN datetime. Includes microseconds. 595 # Example SVN datetime. Includes microseconds.
596 # ISO-8601 conformant 596 # ISO-8601 conformant
597 # '2007-01-04T17:35:00.902377Z' 597 # '2007-01-04T17:35:00.902377Z'
598 date = util.parsedate(date[:19] + " UTC", ["%Y-%m-%dT%H:%M:%S"]) 598 date = util.parsedate(date[:19] + " UTC", ["%Y-%m-%dT%H:%M:%S"])
599 599
600 log = message and self.recode(message) 600 log = message and self.recode(message) or ''
601 author = author and self.recode(author) or '' 601 author = author and self.recode(author) or ''
602 try: 602 try:
603 branch = self.module.split("/")[-1] 603 branch = self.module.split("/")[-1]
604 if branch == 'trunk': 604 if branch == 'trunk':
605 branch = '' 605 branch = ''