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

Re: Tagging multiple projects within one revision using svn:externals possible bug

From: Ryan Schmidt <subversion-2010b_at_ryandesign.com>
Date: Tue, 1 Jun 2010 16:34:54 -0500

On May 28, 2010, at 10:18, Sergii Ostroverkhov wrote:

> CMD script for init test repository:
> svnadmin create BigProject
> echo [general] > BigProject\conf\svnserve.conf
> echo anon-access = write >> BigProject\conf\svnserve.conf
> svn mkdir -m Project1 svn://localhost/BigProject/Project1
> svn mkdir -m Project1 svn://localhost/BigProject/Project1/tags
> svn mkdir -m Project1 svn://localhost/BigProject/Project1/trunk
> svn mkdir -m Project1 svn://localhost/BigProject/Project1/trunk/src
> svn mkdir -m Project2 svn://localhost/BigProject/Project2
> svn mkdir -m Project2 svn://localhost/BigProject/Project2/tags
> svn mkdir -m Project2 svn://localhost/BigProject/Project2/trunk
> svn mkdir -m Project2 svn://localhost/BigProject/Project2/trunk/src
> svn mkdir -m all-trunks svn://localhost/BigProject/trunk
> svn mkdir -m all-tags svn://localhost/BigProject/tags
> To reproduce supposed bug:
> svn checkout svn://localhost/BigProject/trunk BigProject-trunks
> echo svn://localhost/BigProject/Project1/trunk Project1 > svn-externals.txt
> echo svn://localhost/BigProject/Project2/trunk Project2 >> svn-externals.txt
> svn propset svn:externals -F svn-externals.txt BigProject-trunks

You would probably want to "svn commit" these externals definitions at this point, and "svn update" to download the externals into this working copy of trunk.

> svn mkdir -m 1.0.0 svn://localhost/BigProject/tags/1.0.0
> svn copy BigProject-trunks\Project1 BigProject-trunks\Project2 svn://localhost/BigProject/tags/1.0.0

The usual way to create a tag would be

svn copy svn://localhost/BigProject/trunk svn://localhost/BigProject/tags/1.0.0

You don't make the tag directory first. You don't use a working copy; you use URLs. You don't copy individual items out of the trunk; you copy the whole trunk.

> Expected behaviour:
> svn checkout svn://localhost/BigProject/trunk BigProject-all
> svn mkdir -m 1.0.1 svn://localhost/BigProject/tags/1.0.1
> svn copy BigProject-all\Project1 BigProject-all\Project2 svn://localhost/BigProject/tags/1.0.1
> svn --version:
> svn, version 1.6.6 (r40053)
> compiled Oct 19 2009, 09:36:48
> Copyright (C) 2000-2009 CollabNet.

If that's not helpful, tell us what you're trying to accomplish.
Received on 2010-06-01 23:35:38 CEST

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.