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

Re: CVS SVN build script migration.

From: David Weintraub <qazwart_at_gmail.com>
Date: Sun, 27 Jul 2008 00:09:18 -0400

On Thu, Jul 24, 2008 at 4:21 AM, N D <niranjan8712_at_gmail.com> wrote:
> I am modifying my build script that is based on CVS, to the newly created
> SVN
> CVS has a option -A when you run the cvs update command, -A means reset any
> sticky tags.
> Is there any equivalent option for svn update command?

In CVS, if you are working on the branch, and you want to switch your
working view to the trunk, you can use the "-A" option to remove any
reference to a branch or tag revision. In Subversion, you can do the
same by using "svn switch" and specifying the trunk.

Also remember that tags in Subversion are just special branches, so
unlike CVS where you could have specifies a particular release based
upon a tag, in Subversion, you would have to specify a particular tag
in your URL.

CVS:

$ cvs co -rREL_1.0 foo #Creates a working directory to REL_1.0
$ cvs update -A foo #Updates to latest version on Trunk

Subversion:

$ svn co http://foo/tags/REL-1.0 foo #Creates a working directory to REL-1.0
$ svn switch http://foo/trunk #Updates to the latest
version on Trunk

There is one feature in CVS that isn't in Subversion that might affect
what I am saying. Most of the time in CVS, when you remove any sticky
tags, you are automatically checking out the latest version on Trunk.
However, you can use the "cvs admin" command to change the default
checkout to another branch or revision. I've never seen this feature
used. But, it does mean that if you do a "cvs update -A", you might
not be getting the latest revision off of "trunk".

If you're not using this particular feature, then simply doing a "svn
switch" to the trunk would be the equivalent of using the "-A" switch
on a "cvs update"

--
David Weintraub
qazwart_at_gmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-07-27 06:09:48 CEST

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.