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

Re: how to svn switch "permanently"

From: Talden <talden_at_gmail.com>
Date: Fri, 13 Jun 2008 10:20:08 +1200

> $ svn co -N http://svn.collab.net/repos/svn/tags
> $ cd tags
> $ svn up 1.5.0-rc7

Why checkout the tags rather than just the current tag you're wanting?

$ mkdir ~/wc/tags
$ cd ~/wc/tags
$ svn co http://svn.collab.net/repos/svn/tags/1.5.0-rc7 1.5.0-rc_current

Note the working-copy name "1.5.0-rc_current"... Use "svn info" to check
which RC it refers to.

> ... time passes and rc11 comes out... I want to avoid pulling down all of
> 1.5.0-rc11 with "svn up 1.5.0-rc11 " from the network so I do the
> following...
>
> $ svn switch http://svn.collab.net/repos/svn/tags/1.5.0-rc11 1.5.0-rc7
> $ svn up -N 1.5.0-rc11
> $ rm -rf 1.5.0-rc11
> $ cp -a 1.5.0-rc7 1.5.0-rc11
> $ svn switch http://svn.collab.net/repos/svn/tags/1.5.0-rc7 1.5.0-rc7

$ cd ~/wc/tags
$ svn switch http://svn.collab.net/repos/svn/tags/1.5.0-rc7 1.5.0-rc_current

Or something to that effect.

Having the tags folder checked out doesn't seem to buy you anything
but you now have an extra .svn folder that
holds the wrong state (from your perspective, svn is just doing as
it's told after all) for the RC you've switched to.

--
Talden
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-06-13 00:20:27 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.