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

RE: How to undo a switch?

From: Bert Huijben <bert_at_qqmail.nl>
Date: Tue, 7 Jun 2011 19:16:32 +0200

> -----Original Message-----
> From: Ulrich Eckhardt [mailto:ulrich.eckhardt_at_dominolaser.com]
> Sent: dinsdag 7 juni 2011 17:06
> To: users_at_subversion.apache.org
> Subject: Re: How to undo a switch?
>
> On Tuesday 07 June 2011, Bill Herring wrote:
> > I have just selected a file and chose ‘switch to’ a tag recently used to
> > tag a release of my complete project. I mistakenly assumed that in doing
> > so I would just switch the particular file to the version in the tagged
> > release.
>
> The reason that this doesn't work is that Subversion is a versioned storage
> for files. What many people consider tags or branches is completely
> irrelevant
> to Subversion itself, so it can't determine the "correct" file within your
> "project" when you switch a file to a certain "tag".
>
> BTW: In case you wonder if that is a bug or feature, I have used this feature
> to switch a file to a directory.

The current Subversion 1.7 development snapshot warns you when you do this and requires that you pass --ignore-ancestry if you really want to switch to something unrelated.

        Bert
Received on 2011-06-07 19:18:07 CEST

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