[ https://jira.codehaus.org/browse/SCM-684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=324716#comment-324716 ]
Attila-Mihaly Balazs commented on SCM-684: ------------------------------------------ This is still happening on the latest head (1.9). Please find attached a patch which resolves the issue (and also prevents the first letter of the authors name being mis-interpreted as file status; for example Attila -> A for added). > Mercurial - Unparseable date > ---------------------------- > > Key: SCM-684 > URL: https://jira.codehaus.org/browse/SCM-684 > Project: Maven SCM > Issue Type: Bug > Components: maven-scm-provider-mercurial (hg) > Affects Versions: 1.5 > Reporter: franek > Priority: Blocker > Attachments: fix-hg-blame-parsing.patch > > > Scm Activity Plugin returns a warning for many lines of my code : > {code} > java.text.ParseException: Unparseable date: "<u...@mail.com> c55d9b230751 Wed > Jun 06 14:15:52 2012 +0200" > at java.text.DateFormat.parse(DateFormat.java:337) ~[na:1.6.0_31] > at > org.apache.maven.scm.util.AbstractConsumer.parseDate(AbstractConsumer.java:112) > ~[maven-scm-api-1.7.jar:1.7] > at > org.apache.maven.scm.provider.hg.command.blame.HgBlameConsumer.doConsume(HgBlameConsumer.java:71) > [maven-scm-provider-hg-1.7.jar:1.7] > at > org.apache.maven.scm.provider.hg.command.HgConsumer.consumeLine(HgConsumer.java:131) > [maven-scm-provider-hg-1.7.jar:1.7] > at > org.codehaus.plexus.util.cli.StreamPumper.consumeLine(StreamPumper.java:197) > [plexus-utils-2.0.5.jar:na] > {code} > It is due to this command : > {code} > hg blame --user --date --changeset File.txt > {code} > It returns : > {code} > firstname lastname <u...@mail.com> c55d9b230751 Tue Jun 19 14:20:07 2012 > +0200: > {code} > Whereas the plugins expects (no space between firstname and lastname) : > {code} > firstnamelastname <u...@mail.com> c55d9b230751 Tue Jun 19 14:20:07 2012 +0200: > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira