[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[Subclipse-users] svn ant task wcVersion and svn:externals

From: Robert Wenner <robert_at_port25.com>
Date: Wed, 17 Nov 2010 17:57:45 -0600

Hi,

if I understand the wcVersion task correctly, it should behave like
svnversion. It seems to does that, unless svn:externals enter the
picture. In that case wcVersion picks the external repository's revision
number if it is higher than the main repository's.

robert_at_pferdeapfel:~/wc> svn st
X scripts/packager

Performing status on external item at 'scripts/packager'
robert_at_pferdeapfel:~/wc> ant version
Buildfile: /Users/robert/wc/build.xml

prepare:

version:
       [svn] <WcVersion> started ...
       [svn] <WcVersion> finished.
      [echo] Building rev 12598M

BUILD SUCCESSFUL
Total time: 2 seconds
robert_at_pferdeapfel:~/wc> rm -rf scripts/packager/
robert_at_pferdeapfel:~/wc> ant version
Buildfile: /Users/robert/fm/wc/build.xml

prepare:

version:
       [svn] <WcVersion> started ...
       [svn] <WcVersion> finished.
      [echo] Building rev 3502

BUILD SUCCESSFUL
Total time: 2 seconds
robert_at_pferdeapfel:~/wc> svnversion
3502

The ant script looks like this:

...
     <target name="version">
         <svn>
             <wcVersion path="." prefix="svn."/>
         </svn>
     </target>
...

What am I missing here?
How can I get wcVersion to ignore the externals?

Thanks,

Robert

------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1047&dsMessageId=2682571

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subclipse.tigris.org].
Received on 2010-11-18 00:59:34 CET

This is an archived mail posted to the Subclipse Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.