jenkinsci/mercurial-plugin — pull request #23 by geofflane (2012-04-03 21:49:43+00:00)
Title: Add MERCURIAL_CHANGESET_NUMBER to exported environment variables 

This commit adds another environment variable to export. In addition to the current MERCURIAL_REVISION (node id) I'm also exporting MERCURIAL_CHANGESET_NUMBER which contains the ordinal value of the changeset. This is useful for auto-incrementing build number and being able to tie back a build to a specific revision. (The use case is incrementing the version of an RPM that we use for deploying our application)

Technically the names are the opposite of what they should be but REVISION was already used for the node id, so I didn't want to break backwards compatibility.

Signed-off-by: Geoff Lane