You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Philip Martin <ph...@wandisco.com> on 2010/11/16 12:43:41 UTC

A new 1.7 switch feature?

We seem to have given switch a new ability in 1.7, it's possible to
switch a unversioned path:

svnadmin create repo
svn mkdir -mm file://`pwd`/repo/A
svn co file://`pwd`/repo wc
svn sw file://`pwd`/repo/A wc/X

Now I see:

svn st wc
     S   wc/X

and

sqlite wc/.svn/wc.db "select * from nodes"
1|A|0||1|A|1|normal|||dir|()|infinity|||1|1289910810354827|pm||||
1||0||1||1|normal|||dir|()|infinity|||1|1289910810354827|pm||||
1|X|0||1|A|1|normal|||dir|()|infinity|||1|1289910810354827|pm||||

In 1.6 the switch fails with an error that wc/X was not versioned.  It
is possible to make 1.6 do the switch:

svn mkdir -mm file://`pwd`/repo/X
svn co file://`pwd`/repo wc
svn sw file://`pwd`/repo/A wc/X
svn up -r1 wc

That results in a similar working copy to the one obtained by switching
a non-versioned node.

Is this something that we should be supporting?

Perhaps we should get rid of the externals code and use this instead?
Yes, it appears to work for files.

-- 
Philip

Re: A new 1.7 switch feature?

Posted by "C. Michael Pilato" <cm...@collab.net>.
On 11/16/2010 07:43 AM, Philip Martin wrote:
> Is this something that we should be supporting?
> 
> Perhaps we should get rid of the externals code and use this instead?
> Yes, it appears to work for files.

Eek.  The file externals feature came about because it just so happened that
we supported switches of schedule-add files.  I really, *really* don't want
us making those kinds of feature decisions in the future on the basis of,
"Well, gosh, it sorta seems to work."  Let's try to be more intentional
about such things, shall we?

-1, but let's revisit the idea in some post-1.7 release!

-- 
C. Michael Pilato <cm...@collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand