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

NODE_DATA / NODES status

From: Erik Huelsmann <ehuels_at_gmail.com>
Date: Fri, 10 Sep 2010 16:21:46 +0200

Today, I finished replacing all NODE_DATA queries (UPDATE/DELETE/INSERT) in
wc_db.c by queries which operate on NODES. From here on, I'll start to write
code to query BASE_NODE+NODES and WORKING_NODE+NODES, verifying that both
tables return the same results.

There are however, a few queries in 'entries.c' which operate directly on
BASE_/WORKING_NODE. These queries will need to be migrated. However, in our
old entries, we don't have the concept of op_depths and op roots. That makes
it a bit hard to migrate the entries file to the exact semantics of the
NODES table. When we fix the WORKING_NODE concept to have an op_depth == 1
during migration, however, conversion of the queries in that file isn't much
of a problem.

Does anybody expect serious issues from all working nodes having the same
op_depth?

The alternative would be to set the op_depth of each working node to the
path component count of its local_relpath (making each node a stand-alone
change).

Now that I write the above, I think it's the sanest to make each working
node its own oproot. That would be roughly as simple to code as the
"everything is 1" assumption.

Better ideas? Comments?

Bye,

Erik.
Received on 2010-09-10 16:22:25 CEST

This is an archived mail posted to the Subversion Dev mailing list.