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

Re: Intro and questions

From: <peter.westlake_at_arm.com>
Date: 2001-08-02 17:30:09 CEST

Resent this to the list - too much haste, not enough speed.
Sorry about the duplicate, Ben.

On 2001-08-02 15:35:40 Ben Collins-Sussman wrote:
>Yoshiki Hayashi <yoshiki@xemacs.org> writes:
>
>> <peter.westlake@arm.com> writes:
>>
>> > I think we may be talking at cross-purposes. What I mean is that
>> > if we have two programs foo and bar that both use a library lib,
>> > and I check out foo, giving me:
>> >
>> > foo/foo.c
>> > foo/lib/lib.c
>> >
>> > and I edit foo/lib/lib.c and check it in,
>> > you should then be able to check out bar and get
>> >
>> > bar/bar.c
>> > bar/lib/lib.c
>> >
>> > with my changes to lib.c. I haven't seen anything in the
>> > Subversion documentation to suggest that this can be done.
>>
>> If this is the goal, I think this can be implemented easily
>> by adding 'link' node kind to subversion filesystem.
>
>Yoshiki is right. We do intend to support symbolic links in the
>filesystem someday. It seems like this is all we'd need.

It certainly gets you a long way. There are a number of pitfalls
to avoid: for instance, if the above is implemented as

foo/foo.c
foo/"link to lib"

then if you check out revision R of foo, a simple minded implementation
would give you the latest version of lib. If lib was edited, checking out
revision R of foo would give you an updated lib. Getting different results
from two different checkouts of the same revision is clearly a bad thing.
Specifying the revision of lib in the link avoids the problem, but then
you only have what I called "static" sub-modules. Checking out revision
S > R of foo would still get you the old lib. Sometimes this is what you
want, and sometimes it isn't. I fully intend to come up with a scheme that
supports both functions, and also allows the distinction between the case
where branching foo causes lib to branch, and the case where it doesn't.

Peter.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:34 2006

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.