Back out emptyRepo changes - due to issues
authorShabe Razvi <shaber@symbian.org>
Wed, 24 Mar 2010 18:20:54 +0000
changeset 949 627fc020bb12
parent 948 21eb99277b75
child 950 ca764fdeb15e
Back out emptyRepo changes - due to issues
common/templates/source-spec.ant.xml.ftl
--- a/common/templates/source-spec.ant.xml.ftl	Fri Mar 26 11:50:58 2010 +0000
+++ b/common/templates/source-spec.ant.xml.ftl	Wed Mar 24 18:20:54 2010 +0000
@@ -5,13 +5,7 @@
 
     <!-- Convert \s in cache location, because otherwise they disappear entirely when used in a regex replacement! -->
     <propertyregex property="sf.spec.sourcesync.cachelocation.for.regex" input="${dollar}{sf.spec.sourcesync.cachelocation}" regexp="\\" replace="/" global="true" defaultValue="${dollar}{sf.spec.sourcesync.cachelocation}"/>
-
-    <!-- Create an empty hg repo to use when converting remote tags into hashes-->
-    <exec executable="hg" dir="${ant['temp.build.dir']}">
-        <arg value="init"/>
-        <arg value="emptyRepo"/>
-    </exec>
-
+    
 <#assign fileset = "" />
 <#assign sync_list = "" />
 <#assign bom_list  = "" />
@@ -34,21 +28,7 @@
                 <propertyregex property="sf.spec.sourcesync.cachelocation.${count}" input="${pkg_detail.source}" regexp="^${ant['sf.spec.sourcesync.local.development.area']}/" casesensitive="false" replace="${dollar}{sf.spec.sourcesync.cachelocation.for.regex}/LocalDev/"/>
             </then>
         </if>
-        
-        <!-- Convert source tag/branch to to changeset hash, in case it's a local tag on the server -->
-        <exec executable="hg" dir="${ant['temp.build.dir']}/emptyRepo" outputproperty="sf.sourcesync.${count}.checksum">
-            <arg value="in"/>
-            <arg value="${pkg_detail.source}"/>
-            <arg value="-r"/>
-            <arg value="${pkg_detail.pattern}"/>
-            <arg value="-l"/>
-            <arg value="1"/>
-            <arg value="-n"/>
-            <arg value="--template"/>
-            <arg value="{node|short}"/>
-            <arg value="-q"/>
-        </exec>
-        
+	
         <if>
             <and>
                 <isset property="sf.spec.sourcesync.cachelocation.${count}"/>
@@ -102,7 +82,12 @@
                 <exec executable="hg" dir="${ant['build.drive']}${pkg_detail.dst}" failonerror="true">
                     <arg value="update"/>
                     <arg value="-r"/>
-                    <arg value="${dollar}{sf.sourcesync.${count}.checksum}"/>
+                    <arg value="${pkg_detail.pattern}"/>
+                </exec>
+                <!-- Record the changeset selected, for the BOM -->
+                <exec executable="hg" dir="${ant['build.drive']}${pkg_detail.dst}" outputproperty="sf.sourcesync.${count}.checksum">
+                    <arg value="identify"/>
+                    <arg value="-i"/>
                 </exec>
             </then>
             <else>
@@ -117,7 +102,12 @@
                 <exec executable="hg" dir="${ant['build.drive']}${pkg_detail.dst}" failonerror="true">
                     <arg value="update"/>
                     <arg value="-r"/>
-                    <arg value="${dollar}{sf.sourcesync.${count}.checksum}"/>
+                    <arg value="${pkg_detail.pattern}"/>
+                </exec>
+                <!-- Record the changeset selected, for the BOM -->
+                <exec executable="hg" dir="${ant['build.drive']}${pkg_detail.dst}" outputproperty="sf.sourcesync.${count}.checksum">
+                    <arg value="identify"/>
+                    <arg value="-i"/>
                 </exec>
                 <if>
                     <isset property="sf.spec.sourcesync.cachelocation.${count}"/>