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

Repository directory alias

From: Michael Sims <michaels_at_crye-leike.com>
Date: 2005-02-25 22:16:22 CET

Hi, I'm a relatively new Subversion user (thanks to the devs for such a great tool!)
and I've got a quick question that I hope isn't too obvious. I've read through the
subversion online book and searched the archives but I'm not able to figure out how
to do this or if it is possible.

I'm keeping several web applications in a Subversion repository. My respository
structure is as follows:

appname/trunk/
appname/tags/
appname/branches/

Whenever my dev team adds a new feature to one of our apps, we create a new release
branch, and use that branch for bugfixes only. All new development take place on
the trunk or on another branch, until we merge those changes and create another
release branch. Our naming convention for these release brances is
"release-YYYYMMDD", so I may end up with something like:

appname/branches/release-20041023/
appname/branches/release-20050221/
...

At any given time the current release branch is the newest one (the highest date).

Frequently when checking out a new copy of the release branch of one of my apps, I
find that I cannot recall what the current release branch name is, and I have to
browse the repository to get the name, then use it to checkout. What I'd like to do
is create some sort of alias in the repository, kinda like a symlink, so that I can
checkout the latest release to the current directory by doing the following...

$ svn co $SVNROOT/appname/branches/current-release .

..and have it automatically checkout $SVNROOT/appname/branches/release-20050221/
instead. Later if we make another release I'd like to be able to update this alias
so that I or my developers don't have to remember the current release branch name
when checking out and can simply specify "current-release".

I looked at the svn:externals property but it doesn't seem to be quite what I want.
I don't want this to be some subdirectory of another working copy, but I want it to
actually be THE working copy. Also, it seems that I would need to define the
svn:externals on the "appname/branches" directory, and I don't want to have to
checkout all the branches so that I can set this property each time a new release
branch is created.

Is something like this currently possible? I'd appreciate any pointers...

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Feb 25 22:25:01 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.