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

Re: Ev2 file/dir modifications and properties

From: Greg Stein <gstein_at_gmail.com>
Date: Wed, 30 Oct 2013 17:30:01 -0500

On Wed, Oct 30, 2013 at 4:43 AM, Julian Foad <julianfoad_at_btopenworld.com> wrote:
> Branko Čibej wrote:
>
>> It just eneterd my consciousness that Ev2's alter_directory and
>> alter_file operations apparently expect to receive a full set of
>> properties, if even one prop is being altered or deleted. I haven't
>> tested if that is in fact how it works, but it seems to me to be the
>> same kind of design bug as the list of children on a directory; i.e., it
>> would be a lot better if we sent a property diff instead of the whole set.
>>
>> Thoughts?
>
> As I understand it, the Ev2 API design is premised on the idea that the sender knows the full initial state against which it is describing a change, and so it isn't a problem to provide a complete list at the API level.

Exactly. A set of properties is very easy conceptually and at the
implementation. A delta is more difficult, and not really necessary.

The full set of properties and the list of children are also part of
the desire to be atomic. The call says "set the state to <this>" and
you're done. The (new) children may be set to incomplete (aka
known-but-undefined), but the directory doesn't need any special
status.

Cheers,
-g
Received on 2013-10-30 23:30:34 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.