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

Re: Supernumerous files/directories in tag

From: John Szakmeister <john_at_szakmeister.net>
Date: 2005-05-11 11:38:02 CEST

On Friday 06 May 2005 10:58, Ronny Schuetz wrote:
> Hi all,
>
> I just ran into a strange issue when creating a tag in SubVersion
> (server is running 1.1.2 and svnperms to disallow modifications of
> tags). The following case is just an example to show the issue,
> in reality I want to create a complex tag containing different
> versions.
>
> That's the "test" repository:
>
> - branches/
> - tags/
> - trunk/
> - ctest/
> - dir1/
> - file1.txt
> - dir2/
> - file2.txt
> - dir3/
> - file3.txt
>
> I want to create a tag "ctest-tag" containing dir1/ (including
> file1.txt) only, but still having dir1/ below ctest/, i.e. the result
> should look like this:
>
> - tags/
> - ctest-tag
> - ctest/
> - dir1/
> - file1.txt
>
> So I checked out trunk and ctest in non-recursive mode and dir1
> recursively into an empty directory (btw, it would be nice if I could
> do
>
> this in a single call) to have the whole structure under SubVersion
control:
> > svn co svn://server/test/trunk d:\work\svn -N
> > svn co svn://server/test/trunk/ctest d:\work\svn\ctest -N
> > svn co svn://server/test/trunk/ctest/dir1 d:\work\svn\ctest\dir1
>
> (which might return some additional files placed directly below trunk/
>
> or ctest/, but thats acceptable), and copied the stuff back to the
server:
> > svn cp d:\work\svn svn://server/test/tags/ctest-tag -m tag
>
> which did not create the expected hierarchy, but:
>
> - tags/
> - ctest-tag
> - ctest/
> - dir1/
> - file1.txt
> - dir2/
> - file2.txt
> - dir3/
> - file3.txt
>
> where dir2/ and dir3/ were not in the working copy at all and I don't
> want to have these directories and files in the tag.
>
> Is there any way to achieve the desired state?

I believe this is related to Issue #2153. Even after #2153 is resolved,
I'm not sure this is the way you want to make your snapshot. You might
have to checkout and 'svn rm' the components that you don't want, the do
an 'svn cp wc URL'. I'm not sure there is a simpler to get what you
want.

-John

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed May 11 11:48:34 2005

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