Re: Ev2 alter_directory deltas
From: Julian Foad <julianfoad_at_btopenworld.com>
Date: Wed, 14 Aug 2013 14:51:08 +0100 (BST)
Philip Martin wrote:
> Julian Foad <julianfoad_at_btopenworld.com> writes:
Right, I understand your use case now, and agree.
The root of the problem, as I recall, is the WC DB requirement that, before updating the DB entry for directory "DIR" to revision REV, there must be child entries in the DB corresponding to (at least) all the children of DIR_at_REV in the repository. I'm not 100% sure about that requirement. I recall something about how by doing this we could avoid marking the directory itself as incomplete but only mark its new children as incomplete, and this was considered to be a good thing.
From that requirement we extended and derived a requirement for Ev2 that an alter-directory(children=X) must be issued before any calls that change the list of children. At first sight, that rule seems to fit well with the principle of the Once Rule, if we assume that a typical receiver (WC or repository) will treat a directory node as an object that contains a list of children, and will want to update it in one shot. However, it may not actually be as good a fit as it seems. A repository will probably need more information than simply a list of child names: it will want to know the corresponding node ids, and it won't know them until any copies, adds come in. So we should be careful about assuming this alter-dir is necessarily useful.
There are any number of ways we could change things. I don't currently have a strong enough handle on the exact reasoning to be able to suggest the best course of action.
- Julian
|
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.