convert: add full description for gnu arch revisions
authorAleix Conchillo Flaque <aleix@member.fsf.org>
Wed, 06 Feb 2008 11:42:04 +0100
changeset 6037 dd3267698d84
parent 6036 c9f615ab3082
child 6038 36a60bd5b707
child 6042 2da5b19a6460
convert: add full description for gnu arch revisions
hgext/convert/gnuarch.py
--- a/hgext/convert/gnuarch.py	Wed Feb 06 09:11:36 2008 +0100
+++ b/hgext/convert/gnuarch.py	Wed Feb 06 11:42:04 2008 +0100
@@ -217,11 +217,9 @@
         return changes, copies
 
     def _parsecatlog(self, data, rev):
+        readingsummary = False
         for l in data:
             l = l.strip()
-            if l.startswith('Summary:'):
-                self.changes[rev].summary = l[len('Summary: '):]
-
             if l.startswith('Standard-date:'):
                 date = l[len('Standard-date: '):]
                 strdate = util.strdate(date, '%Y-%m-%d %H:%M:%S')
@@ -230,6 +228,12 @@
             if l.startswith('Creator:'):
                 self.changes[rev].author = l[len('Creator: '):]
 
+            if not readingsummary and l.startswith('Summary:'):
+                readingsummary = True
+                self.changes[rev].summary = l[len('Summary: '):]
+            elif not l.startswith('Keywords:'):
+                self.changes[rev].summary += '\n%s' % l
+
     def _parsedelta(self, data, rev):
         for l in data:
             l = l.strip()