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

RE: svn copy - tags - parent dir and create paths

From: Dale Worley <dworley_at_pingtel.com>
Date: 2005-01-03 18:48:08 CET

-----Original Message-----
From: allan juul [mailto:lambretta@inet.uni2.dk]

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
---------------------------------------------------------------------

It seems to me that part of the problem comes from the fact that developer A
and developer B are both trying to create a tag "v_1_0", desipte that the
code developer A is putting into the tag has little to do with the code that
developer B is putting into the tag -- the files are related only because
they have the same name.

It would make more sense to have:

    tags/subproject_A/v_1_0
    tags/subproject_A/v_1_1
    tags/subproject_A/...
    tags/subproject_B/v_1_0
    tags/subproject_B/v_1_1
    tags/subproject_B/...

Then developer A would always do

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

and developer B would always do

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

This makes more sense, and as a side-effect, eliminates much of the problem
you are having.

Dale

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jan 3 18:52: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.