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

Re: Organize working copies

From: Ryan Schmidt <subversion-2006d_at_ryandesign.com>
Date: 2006-11-14 19:03:39 CET

On Nov 13, 2006, at 14:50, Andy Peters wrote:

> Begin forwarded message:
>> From: "Kalle Klovn" <nyhetsgrupper@gmail.com>

>>> > It is recommanded to use a directory structur like this in the
>>> > repository:
>>> > - project
>>> > ---- tags
>>> > ---- branches
>>> > ---- trunk
>>> >
>>> > If I use the same directory structure on the client (the working
>>> > copy) will
>>> > I need the switch command?
>>> You check out only what you're working on (usually the trunk,
>>> sometimes a particular branch), so there's no need to switch or
>>> anything like that.
>> OK, I think I maybe understand now. In
>> http://svnbook.red-bean.com/nightly/en/svn-
>> book.html#svn.branchmerge.switchwc
>> there is an example of switching to a branch named my-calc-branch,
>> but if
>> you do like in this example you will have a copy of a branch in a
>> directory
>> named trunk, which seems strange. Is it just a bad example or am I
>> still
>> misunderstanding something?

After you switch the directory, it would make sense to then rename
the local directory. Otherwise, sure, it's confusing to have a
directory called "trunk" when it's actually pointing at a branch. If
you're just switching the working copy to the branch for a few
minutes while you make a quick change, then switching back to trunk,
then you may as well just leave it named as it is. But if you're
switching to the my-calc-branch for a longer time or permanently,
then you should probably rename the local directory to "my-calc-
branch" to help you remember what it is. This is only for your local
convenience and understanding; the repository doesn't know or care.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Nov 14 19:29:04 2006

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