Hey all, So I've been thinking of how we upgrade working copies to the new NODES table. As before, we have two scenarios to be concerned with:
1. formats 4..10: releases 1.0 thru 1.6 2. formats 11..19: 1.7-dev For (1), we revamp the old-entries-writing in entries.c, which is invoked as part of upgrade_to_wcng(). Rather than writing to the *_NODE tables, we will write to NODES and ACTUAL_NODE. This doesn't feel too hard, except for the testing part. Our current entries-writing code was tested via entry_modify() and friends when those functions were still in use. The only way to test this code path now is to create a large set of working copies with "all" state variations. Not fun. Maybe there is a way to automate this, or use our test suite to generate working copy datasets? For (2), I would prefer to do this in code, but being such a difficult series of transforms (prior auto-upgrades were quite simple), and that we've already had precedent for an external script... I'm thinking of just doing that. Thoughts? Cheers, -g