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

Creating copies using "svn cp" preserving directory structure

From: Holger Rauch <holger.rauch_at_heitec.de>
Date: 2005-06-23 11:31:16 CEST

Hi!

I am trying to create a tag using "svn cp" (Subversion 1.1.4)
consisting not of the entire trunk (HEAD revision) of a project,
but rather only certain subdirectories. My sample project looks
like this:

tag-test
  |--> trunk
         |--> betra
               |--> 1.0.1 (contains "blah.sql", "blubber.sql")
               |--> 1.0.2 (contains "create-tables.sql","insert-rows.sql")
               |...
         |--> las
               |--> 2.8.5 (contains "create-tables.sql","insert-rows.sql")
               |--> 2.8.6 (contains "create-laslala.sql","insert-rows.sql")
               |--> 2.8.7 (contains "create-table3.sql","insert-rows3.sql")
               |...
  |--> tags
  |--> branches

What I want to achieve is something similar to what's shown in the following example:
[trunk omitted for better readability]

tag-test
  |--> tags
         |--> TEST-TAG
                |--> betra
                      |--> 1.0.2 (contains file mentioned above)
                |--> las
                      |--> 2.8.7 (contains file mentioned above)

(That is, I want to preserve the directory structure within the
corresponding tags subdir)

Whenever I tried using "svn cp" with the URL -> URL syntax like this

svn cp -m "Creating sample tag" $SVNROOT/tag-test/trunk/betra/1.0.2
$SVNROOT/tag-test/tags

(SVNROOT is an environment variable containing the constant part of the URL,
i. e. the path to the repository)

I ended up with the files in betra/1.0.2
("create-tables.sql","insert-rows.sql") being directly placed below TEST-TAG
(without the "betra/1.0.2" subdirs).

How can I preserve directory structure when creating copies?

Unfortunately, I couldn't find any info on this issue in chapter 4 or
chapter 9 in the svn book.

Thanks in advance for any info!

Kind regards,

        Holger
               

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jun 23 11:29:33 2005

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.