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

Re: svn:externals set to tag

From: Daniel Schlyder <daniel_at_dascdev.net>
Date: 2003-09-11 16:36:55 CEST

[11.09.2003 14:02:49] Leeuw van der, Tim:
> Anyways, Daniel, perhaps you can send us your exact recipe? When exactly do
> you update projectA for instance, when exactly to you make the new tag in
> projectB, when exactly to you change the svn:externals property in projectA?

Ok, here goes:

svnadmin create projectA
svnadmin create projectB
svn mkdir file:///temp/projectA/trunk -m "Create trunk dir."
svn mkdir file:///temp/projectB/trunk file:///temp/projectB/tags \
    -m "Create trunk and tags dirs."
svn co file:///temp/projectA/trunk wcA
svn co file:///temp/projectB/trunk wcB

cd wcB
echo hello, world > foo.txt
svn add foo.txt
svn ci -m "Add foo.txt"
svn cp file:///temp/projectB/trunk file:///temp/projectB/tags/0.1 \
    -m "Tag version 0.1"

echo goodbye, cruel world > bar.txt
svn add bar.txt
svn ci -m "Add bar.txt"
svn cp file:///temp/projectB/trunk file:///temp/projectB/tags/0.2 \
    -m "Tag version 0.2"

cd ../wcA
svn mkdir include
svn pset svn:externals "projectB file:///temp/projectB/tags/0.1" include
svn ci -m "Add projectB 0.1 as external."
svn up
svn pset svn:externals "projectB file:///temp/projectB/tags/0.2" include
svn ci -m "Upgrade projectB external to 0.2."
svn up

At this point, wcA does not have include/projectB/bar.txt.

Tested using Windows client 0.26 on XP.

Thanks,
Daniel Schlyder

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Sep 11 16:38:31 2003

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

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