[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: Zing Zing Shishak <shishz_at_alum.rpi.edu>
Date: Thu, 12 Jun 2008 11:30:31 -0400 (EDT)

On Wed, 11 Jun 2008, Blair Zajac wrote:

> Zing wrote:
> > Is there a way to make a "switched" part of your working copy be that
> > actual "switched" part?
> >
> > For example, I have a checkout of 1.5.0-rc7 from the svn tags directory
> > and then switched that to 1.5.0-rc11:
> >
> > $ svn st
> > S 1.5.0-rc7
> >
> > How can I make that actually be 1.5.0-rc11? Is that even possible?
> >
> > Ultimately, I guess I'm trying to avoid the unneeded network traffic of
> > "svn up 1.5.0-rc11".
>
> Update is a simplified switch where you can't change the URL, so you're
> spending the same amount of network traffic to switch or update.
>
> It's odd that you see this:
>
> $ svn st
> S 1.5.0-rc7
>
> which suggests you checked out the tags directory??? Which isn't a good
> idea. You should directly check out the tag.

Yes, I have a checkout of the tags directory using -N though, so I can
then pick and choose which "tags" to "svn up" from there. "svn
switch"'ing using an existing tag is more network efficient because those
only pull down the diffs from the existing working copy you have... but I
think I've found a workaround...

> In any case, inside the 1.5.0-rc7 directory it doesn't think it's a
> switched wc. So if you move the 1.5.0-rc7 somewhere out of the parent
> directory it is in, rename it to 1.5.0-rc11, you'll be fine.

So what I can do as a workaround follows (full steps outlined):

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

... 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

"svn st" comes back clean, no S status either. The above is a workaround
jig and not ideal, but it seems to work alright. Thanks, your comment
about "move" the directory kicked out this workaround.

---------------------------------------------------------------------
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-12 17:31:04 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.