mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 00:14:35 +03:00
convert: add full description for gnu arch revisions
This commit is contained in:
parent
28a046f2fa
commit
718a1ad73e
@ -217,11 +217,9 @@ class gnuarch_source(converter_source, commandline):
|
||||
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, commandline):
|
||||
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()
|
||||
|
Loading…
Reference in New Issue
Block a user