Re: Site management strategies with Subversion
Re: Site management strategies with Subversion
- Subject: Re: Site management strategies with Subversion
- From: Chuck Hill <email@hidden>
- Date: Mon, 13 Mar 2006 17:29:32 -0800
Wow. I never thought I would actually miss the cvs tag command...
On Mar 13, 2006, at 5:23 PM, wojingo wrote:
Hi,
email@hidden wrote:
The problem is, Subversion doesn't have an official tag command.
The "svn way" to do tags is to take a snapshot of the current
state of the repository, by making a copy of it in a special /
tags directory. That means, I think, that there is no way to tag-
and-move only part of a repository - it is always going to be all
or nothing. This will be fine for the way you work, but it
throws a huge monkey-wrench into the way I work.
Anyone else have any thoughts here? Is there a more clever
workaround than splitting things up into a gazillion little
repositories?
I was wondering if you have read the book available on the svn
website?
This is a section about tags that seems relevant.
Creating a Complex Tag
Sometimes you may want your “snapshot” to be more complicated than
a single directory at a single revision.
For example, pretend your project is much larger than our calc
example: suppose it contains a number of subdirectories and many
more files. In the course of your work, you may decide that you
need to create a working copy that is designed to have specific
features and bug fixes. You can accomplish this by selectively
backdating files or directories to particular revisions (using svn
update -r liberally), or by switching files and directories to
particular branches (making use of svn switch). When you're done,
your working copy is a hodgepodge of repository locations from
different revisions. But after testing, you know it's the precise
combination of data you need.
Time to make a snapshot. Copying one URL to another won't work
here. In this case, you want to make a snapshot of your exact
working copy arrangement and store it in the repository. Luckily,
svn copy actually has four different uses (which you can read about
in Chapter 9), including the ability to copy a working-copy tree to
the repository:
$ ls
my-working-copy/
$ svn copy my-working-copy http://svn.example.com/repos/calc/tags/
mytag
Committed revision 352.
Now there is a new directory in the repository, /calc/tags/mytag,
which is an exact snapshot of your working copy—mixed revisions,
URLs, and all.
regards,
- shaun
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net
This email sent to email@hidden
--
Coming in 2006 - an introduction to web applications using WebObjects
and Xcode http://www.global-village.net/wointro
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems. http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden