On Apr 8, 2007, at 01:01, F.J. Weiland wrote:
> I've got the same question & just found this brief info exchange on
> topic in the archives.
> I'm transitioning over to svn from another tool that works very
> differently, so I'm having to adjust a bit.
> Given two parallel lines of development, a main line and a new-feature
> line, using subversion, what's the "school solution" for marking the
> changes in the new-feature line?
> In subversion terminology, given a trunk and a branch called new-
> how am I supposed to "tag" important builds of the new-feature
> branch --
> make a tags directory under the new-feature branch, or use the top-
> tags directory and be clear about the tagname given?
> A. using a build-specific tags directory:
> B. using only the main tags directory:
> Which is considered the "Right" way to do this with subversion?
Use "B". "A" is not possible unless you put an additional directory
under the new-feature branch directory in which to put your actual
code, and that would no longer represent any kind of example
recommended by Subversion. It's for the same reason that you need a
directory (by convention called "trunk") in which to put your main
code, rather than putting it directly into "project": the reason is
the way by which you create a branch or tag: you copy. If you were to
copy "project" to "project/tags/maintag1", and then later copy
"project" to "project/tags/maintag2", you will find that "project/
tags/maintag2" will contain all of "project" -- including "tags/
maintag1"! And that's certainly not what you want -- that each tag
contains a copy of each previous tag. Therefore, do not copy
"project" (which contains the "tags" directory) in order to tag;
rather, copy "project/trunk" (which does not).
Of course, the directory structure is up to you and you can arrange
it any way that makes sense to you.
To reply to the mailing list, please use your mailer's Reply To All
To unsubscribe, e-mail: email@example.com
For additional commands, e-mail: firstname.lastname@example.org
Received on Sun Apr 8 11:10:08 2007