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

Re: How do a branch/switch a single file?

From: Scott Palmer <scott.palmer_at_2connected.org>
Date: 2005-05-04 02:28:32 CEST

On May 3, 2005, at 6:02 PM, Brian Huddleston wrote:

> I'm wondering exactly how you would go about switching a single file?

Switching is something you do to working copies, not files.
Switching changes your working copy to match a different repository URL.

> So the branching operation seems easy:
>
> svn cp b.txt svn+ssh://machine/user/bhuddleston/workspace

Yes, that will make a branch/copy of b.txt.

> But how do I "switch" only b.txt to svn+ssh://machine/user/
> bhuddleston/workspace?

You don't.

> Basically the desired behavior is that when I run svn up, a.txt and
> b.txt are updated from the trunk, but b.txt stays switched to the
> workspace dir.

You can't get that behavior from Subversion. (Though I would like it
too! So you can have shared files, like VSS.)

The closest thing is to have folders coming from different repository
paths, using the svn:externals property.

Scott

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed May 4 02:30:20 2005

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