common/templates/tag-hg-code.ant.xml.ftl
changeset 1141 08f7282dae54
parent 1083 a91d8608229c
child 1277 2ea5b5b66973
equal deleted inserted replaced
1140:b15dfb01fee6 1141:08f7282dae54
    59 			<exec executable="hg" dir="${ant['build.drive']}" outputproperty="hash12.${count}" logError="true">
    59 			<exec executable="hg" dir="${ant['build.drive']}" outputproperty="hash12.${count}" logError="true">
    60 				<arg value="id"/>
    60 				<arg value="id"/>
    61 				<arg value="-i"/>
    61 				<arg value="-i"/>
    62 				<arg value="${pkg_detail.dst}"/>
    62 				<arg value="${pkg_detail.dst}"/>
    63 			</exec>
    63 			</exec>
       
    64 			<!-- Remove any '+' on the end of the hash (indicating that the package overwrote some of its own source files during the build) -->
       
    65 			<propertyregex property="hash12.${count}" override="true" input="${dollar}{hash12.${count}}" regexp="\+$" replace=""/>
    64 			<!-- Get the full hash id -->
    66 			<!-- Get the full hash id -->
    65 			<exec executable="hg" dir="${ant['build.drive']}${pkg_detail.dst}" outputproperty="hash40.${count}" logError="true">
    67 			<exec executable="hg" dir="${ant['build.drive']}${pkg_detail.dst}" outputproperty="hash40.${count}" logError="true">
    66 				<arg value="log"/>
    68 				<arg value="log"/>
    67 				<arg value="--rev"/>
    69 				<arg value="--rev"/>
    68 				<arg value="${dollar}{hash12.${count}}"/>
    70 				<arg value="${dollar}{hash12.${count}}"/>