[
http://jira.codehaus.org/browse/MOJO-1537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sean Flanigan updated MOJO-1537:
--------------------------------
Attachment: MOJO-1537.patch
Thanks for the idea Jesse, that makes my patch much simpler!
I'm not sure which date "hg log -r . --template '{date|isodate}'" is returning
for an uncommitted merge, but I don't think it really matters. There isn't
really a correct answer in that case. At any rate, it seems to agree with the
timestamp set by the buildnumber:create goal in 1.0-beta-5-SNAPSHOT.
> buildnumber:hgchangeset fails on uncommited merge
> -------------------------------------------------
>
> Key: MOJO-1537
> URL: http://jira.codehaus.org/browse/MOJO-1537
> Project: Mojo
> Issue Type: Bug
> Components: buildnumber
> Affects Versions: buildnumber-maven-plugin-1.0-beta-4
> Reporter: Laurens Blankers
> Attachments: MOJO-1537.patch
>
>
> When building a Maven project in a Mercurial repository with an uncommited
> merge the hgchangeset goals fails with a NumberFormatException in the
> getRevision() function because in this state 'id -n' does not return the
> local revision number but rather the two parents with a + in between, e.g.
> 100+111 when merging revision 100 and 111.
> In stead of failing the plugin should probably just skip setting the date.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email