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

Re: switching added files -- Re: What revision should an added not yet commited node have?

From: Greg Stein <gstein_at_gmail.com>
Date: Sat, 20 Mar 2010 01:02:03 -0400

On Fri, Mar 19, 2010 at 12:37, neels <neeels_at_gmail.com> wrote:
> On 19 March 2010 07:37, Daniel Näslund <daniel_at_longitudo.com> wrote:
>> I have some quirks with switching locally added files but that's for
>> another post.
>
> I once tested that switching the parent away depth-empty above an
> added node works, and that the added node correctly keeps its previous
> URL.

There is nothing "correct" about that. It is an artifact of buggy wc-1
behavior. When you add a node, it will be committed under its
*current* parent. Not whatever it happened to be six weeks ago when
you did the "svn add". The URL reported was wrong/bad/etc.

Any added node has SVN_INVALID_REVNUM. It will not have a revision
until you commit it. It will not have a repository location until you
commit it.

> But I'm aware that switch can be destructive (e.g. switching forward
> and then back often does not result in the same state).

Probably more of that bad wc-1 behavior.

Cheers,
-g
Received on 2010-03-20 06:02:37 CET

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.