[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: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2005-05-04 03:41:48 CEST

Brian Huddleston wrote:
> Well, I did try it. But apparently I did it Wrong(tm). I do believe
> that you can do it, as the svn book says so. Just not sure how.
>
> If I use b.txt as the second argument I got a directory called b.txt.
>
> If I try to include b.txt in the url, i.e.
>
> svn switch svn+ssh://machine/users/bhuddleston/b.txt I get
>
> svn: URL 'svn+ssh://machine/users/bhuddleston/b.txt' refers to a file,
> not a directory.
>
> Assume I am really really outstandingly not bright. What is the syntax
> for switching b.txt to the "branch" url?

Well, in my working copy checked out from the subversion trunk I just
ran (note that's all one command, even if my mailer splits it into two
lines):

$ svn switch http://svn.collab.net/repos/svn/branches/1.0.x/README README

And it sure switched README onto the 1.0.x branch:

$ svn status
     S README
$

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed May 4 03:44:23 2005

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