Mercurial > hg-stable
changeset 15205:4e5b7d130e76
convert: detect false cset boundaries in cvsps descriptions
author | jakob krainz <jakob@hawo-net.de> |
---|---|
date | Wed, 05 Oct 2011 10:28:39 +0200 |
parents | 3ce9b1a7538b |
children | f85c76b16f27 |
files | hgext/convert/cvsps.py |
diffstat | 1 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/convert/cvsps.py Tue Oct 04 19:43:45 2011 -0400 +++ b/hgext/convert/cvsps.py Wed Oct 05 10:28:39 2011 +0200 @@ -363,8 +363,14 @@ elif state == 8: # store commit log message if re_31.match(line): - state = 5 - store = True + cpeek = peek + if cpeek.endswith('\n'): + cpeek = cpeek[:-1] + if re_50.match(cpeek): + state = 5 + store = True + else: + e.comment.append(line) elif re_32.match(line): state = 0 store = True