Improved hg tagging automation to deal with the unfortunate situation of a package overwriting it's own source files during the build.
--- a/common/templates/tag-hg-code.ant.xml.ftl Tue Jul 06 16:30:27 2010 +0100
+++ b/common/templates/tag-hg-code.ant.xml.ftl Tue Jul 06 17:02:03 2010 +0100
@@ -61,6 +61,8 @@
<arg value="-i"/>
<arg value="${pkg_detail.dst}"/>
</exec>
+ <!-- Remove any '+' on the end of the hash (indicating that the package overwrote some of its own source files during the build) -->
+ <propertyregex property="hash12.${count}" override="true" input="${dollar}{hash12.${count}}" regexp="\+$" replace=""/>
<!-- Get the full hash id -->
<exec executable="hg" dir="${ant['build.drive']}${pkg_detail.dst}" outputproperty="hash40.${count}" logError="true">
<arg value="log"/>