revamping the presence values (was: wc-ng base/working nodes in a copied tree)
From: Greg Stein <gstein_at_gmail.com>
Date: Wed, 7 Apr 2010 20:58:57 -0400
On Tue, Apr 6, 2010 at 23:50, Greg Stein <gstein_at_gmail.com> wrote:
Note this presence also covers copied-here and moved-here.
However, back to the "why try to conserve presence values?" question,
We could also answer certain questions for this node without a call to
> "replaced": indicates an added/copied-here/moved-here node that
I think this is not required. We can always look at a "previous layer"
SELECT 1 FROM NODE_DATA
If any rows are returned, then this "added" (or "copied-here" or
> "deleted": same as "not-present" today. clarifies what this really means.
I believe that we can eliminate the "base-deleted" presence. For
A/B/file1 : presence=deleted
file2 is using base-deleted to indicate that the BASE node A/B/file2
Now... with the new NODE_DATA and op_depth capability, we can
SELECT op_depth FROM NODE_DATA
For file2, there was never an ancestor copy that created it, so the
For file1, it will be 1 or 2, depending on where the copy occurred (A,
Depending upon the exact question... maybe it is "is the BASE node
SELECT 1 FROM NODE_DATA
This eliminates the ORDER BY. If any rows are returned, it is a
> "inherit": applied to children of copied-here/moved-here and
I think we still need these in the WORKING_NODE tree. Potentially
Note that inherit-* nodes may not be reverted. The nearest "operation
> The APIs from wc_db should remain the same. This is a database-only
This is still true. We can leave it unchanged, or we can start to
>...
Cheers,
|
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.