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

svn copy - tags - parent dir and create paths

From: allan juul <lambretta_at_inet.uni2.dk>
Date: 2005-01-01 22:33:26 CET

hi

we are considering to use the default suggested repository layout (for
various reasons).

however i think we will have a slightly annoying situation when
developers are creating tags themselves.

layout
------
/paint/trunk/subproject_A
/paint/trunk/subproject_A/file_A.txt
/paint/trunk/subproject_B/
/paint/trunk/subproject_B/file_B.txt
/paint/branches
/paint/tags

Developer A maintain subproject_A while developer B maintain subproject_B.

Now developer A wish to create a tag named v_1_0:

$ svn copy \
   URL/paint/trunk/subproject_A \
   URL/paint/tags/v_1_0 \
   -m "Tagging subproject_A"

Browsing the repository from the tags directory will now look like this:

   tags
   tags/v_1_0
   tags/v_1_0/file_A.txt

Now developer B wish to create a tag named v_1_0:

$ svn copy \
   URL/paint/trunk/subproject_B \
   URL/paint/tags/v_1_0 \
   -m "Tagging subproject_B"

Browsing the repository from the tags directory will now look like this:

   tags
   tags/v_1_0
   tags/v_1_0/file_A.txt
   tags/v_1_0/subproject_B/
   tags/v_1_0/subproject_B/file_B.txt

The above behavior is apparently controlled by the fact whether the
repository directory "v_1_0" already exists or not

i have tow questions:

1) is there currently a way to always force the behavior of B?
(yes there is: svn mkdir URL/paint/tags/v_1_0 before doing the
actual tagging, but i prefer a single command and no pre-commit script
for this specific behavior)

2) is there currently a way to let a command like:
   $ svn copy TrunkURL /arbitrary/Url/to/tags/arbitrary/tags/to/follow
to actually create the full path before trying to copy ?

thanks
./allan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Jan 1 22:35:47 2005

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