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

branches and tags [post v1.0]

From: John Barstow <John_Barstow_at_gfsg.co.nz>
Date: 2002-10-16 22:12:24 CEST

So, on the train this morning I was thinking about branching, and the thread
on import syntax crystallized my thoughts.

I think we could hit the 80% mark on branching with some very simple
assumptions.

Assuming a dir structure of:
/reposRoot/main/projectA
/reposRoot/branches/branch_Name/projectA
/reposRoot/tags/tag_Name/projectA

I can branch and tag with the following commands:
svn cp /reposRoot/main /reposRoot/branches/branchName
svn cp /reposRoot/main /reposRoot/tags/tagName

Now, this isn't very sophisticated, but can easily be aliased to:
svn branch branchName --auto-switch-to-new-branch
svn tag tagName

Which is good for most smaller projects, including mine. Since it's just
syntatic sugar for 'svn cp', people with more sophisticated needs can
continue to use the cp command.

The only caveat I can see is that you would have to add a switch to create
the root subdirectories, and the branch and tag commands would have to do a
sanity check to avoid messing up alternate layouts. Future enhancements
could be added to make these more sophisticated and efficient (maybe
involving directory properties, for instance).

Does this make sense? Or am I just suffering from early-morning caffeine
deficiency?

John C Barstow

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Oct 16 22:07:31 2002

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.