# HG changeset patch # User MattD # Date 1250069082 -3600 # Node ID 97c01977a87bd0c5c323e4f21fd2e83397a50c7f # Parent 7d60f71b6a78920b34d9d66033db7c82e651ca68 source syncing ftl - Added 'sf.spec.sourcesync.archive' preference to do 'hg archive' instead of 'hg sync'. If set and the repo sync is s'posed to be synced by tag it still does the slower clone+update behaviour. diff -r 7d60f71b6a78 -r 97c01977a87b common/templates/source-spec.ant.xml.ftl --- a/common/templates/source-spec.ant.xml.ftl Wed Aug 12 10:14:39 2009 +0100 +++ b/common/templates/source-spec.ant.xml.ftl Wed Aug 12 10:24:42 2009 +0100 @@ -7,6 +7,16 @@ <#assign dollar = "$"/> <#assign count = 0 /> +<#if ("${ant['sf.spec.sourcesync.archive']}")??> + <#if "${ant['sf.spec.sourcesync.archive']}" == "true"> + <#assign fast_sync = true /> + <#else> + <#assign fast_sync = false /> + +<#else> + <#assign fast_sync = false /> + + @@ -19,17 +29,32 @@ - - - + + + <#if fast_sync && ("${pkg_detail.type}"!="tag") > + + + + + + + + + + + + + + + <#else> - + <#if "${pkg_detail.type}"=="tag" > @@ -46,18 +71,18 @@ + + + + + - - - - -