equal
deleted
inserted
replaced
14 <#assign fast_sync = false /> |
14 <#assign fast_sync = false /> |
15 </#if> |
15 </#if> |
16 <#else> |
16 <#else> |
17 <#assign fast_sync = false /> |
17 <#assign fast_sync = false /> |
18 </#if> |
18 </#if> |
|
19 |
|
20 <#if ("${ant['sf.spec.sourcesync.bug419']}")??> |
|
21 <#if "${ant['sf.spec.sourcesync.bug419']}" == "true"> |
|
22 <#assign bug419 = true /> |
|
23 <#else> |
|
24 <#assign bug419 = false /> |
|
25 </#if> |
|
26 <#else> |
|
27 <#assign bug419 = false /> |
|
28 </#if> |
|
29 |
19 |
30 |
20 <!-- remove previous version of BOM file (if exists) --> |
31 <!-- remove previous version of BOM file (if exists) --> |
21 <target name="reset-bom-sources-csv"> |
32 <target name="reset-bom-sources-csv"> |
22 <delete file="${ant['build.drive']}/output/logs/BOM/sources.csv" quiet="true"/> |
33 <delete file="${ant['build.drive']}/output/logs/BOM/sources.csv" quiet="true"/> |
23 </target> |
34 </target> |
53 <arg value="-U"/> |
64 <arg value="-U"/> |
54 <arg value="${pkg_detail.source}"/> |
65 <arg value="${pkg_detail.source}"/> |
55 <arg value="${ant['build.drive']}${pkg_detail.dst}"/> |
66 <arg value="${ant['build.drive']}${pkg_detail.dst}"/> |
56 </exec> |
67 </exec> |
57 |
68 |
|
69 <#if bug419 > |
|
70 <exec executable="hg" dir="${ant['build.drive']}${pkg_detail.dst}" outputproperty="sf.sourcesync.${count}.checksum"> |
|
71 <arg value="identify"/> |
|
72 <arg value="-i"/> |
|
73 <arg value="-r"/> |
|
74 <arg value="${pkg_detail.pattern}"/> |
|
75 </exec> |
|
76 <exec executable="hg" dir="${ant['build.drive']}${pkg_detail.dst}"> |
|
77 <arg value="update"/> |
|
78 <arg value="-r"/> |
|
79 <arg value="${dollar}{sf.sourcesync.${count}.checksum}"/> |
|
80 </exec> |
|
81 <#else> |
58 <hlm:scm verbose="true" scmUrl="scm:hg:${pkg_detail.source}"> |
82 <hlm:scm verbose="true" scmUrl="scm:hg:${pkg_detail.source}"> |
59 <!--hlm:checkout basedir="${ant['build.drive']}${pkg_detail.dst}"/--> |
83 <!--hlm:checkout basedir="${ant['build.drive']}${pkg_detail.dst}"/--> |
60 <#if "${pkg_detail.type}"=="tag" > |
84 <#if "${pkg_detail.type}"=="tag" > |
61 <hlm:tags basedir="${ant['build.drive']}${pkg_detail.dst}" reference="hg.tags.id${dollar}{refid}"/> |
85 <hlm:tags basedir="${ant['build.drive']}${pkg_detail.dst}" reference="hg.tags.id${dollar}{refid}"/> |
62 <hlm:update basedir="${ant['build.drive']}${pkg_detail.dst}"> |
86 <hlm:update basedir="${ant['build.drive']}${pkg_detail.dst}"> |
69 <hlm:update basedir="${ant['build.drive']}${pkg_detail.dst}"> |
93 <hlm:update basedir="${ant['build.drive']}${pkg_detail.dst}"> |
70 <hlm:tag name="${pkg_detail.pattern}"/> |
94 <hlm:tag name="${pkg_detail.pattern}"/> |
71 </hlm:update> |
95 </hlm:update> |
72 </#if> |
96 </#if> |
73 </hlm:scm> |
97 </hlm:scm> |
|
98 </#if> |
74 <exec executable="hg" dir="${ant['build.drive']}${pkg_detail.dst}" outputproperty="sf.sourcesync.${count}.checksum"> |
99 <exec executable="hg" dir="${ant['build.drive']}${pkg_detail.dst}" outputproperty="sf.sourcesync.${count}.checksum"> |
75 <arg value="identify"/> |
100 <arg value="identify"/> |
76 <arg value="-i"/> |
101 <arg value="-i"/> |
77 </exec> |
102 </exec> |
78 </#if> |
103 </#if> |