# HG changeset patch # User Aleix Conchillo Flaque # Date 2008-02-06 10:42:04 # Node ID dd3267698d84458686b3c5682ce027438900ffbd # Parent c9f615ab3082608f11b76e0c22a377d0a19b0895 convert: add full description for gnu arch revisions diff --git a/hgext/convert/gnuarch.py b/hgext/convert/gnuarch.py --- a/hgext/convert/gnuarch.py +++ b/hgext/convert/gnuarch.py @@ -217,11 +217,9 @@ class gnuarch_source(converter_source, c 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 @@ class gnuarch_source(converter_source, c 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()