Upgrading to wc-ng (was Re: svn commit: r40473 - trunk/subversion/libsvn_wc)
From: Hyrum K. Wright <hyrum_at_hyrumwright.org>
Date: Mon, 16 Nov 2009 16:13:42 -0600
On Nov 12, 2009, at 12:09 AM, Hyrum K. Wright wrote:
> On Nov 11, 2009, at 11:56 PM, Hyrum K. Wright wrote:
Another problematic discovery:
It turns out that upgrade is a classic chicken/egg problem. In upgrade_to_wcng(), we currently:
[*] One of these two (I haven't determine which, though I believe it to be (3)), does an autoupgrade of the database schema to the current format. This autoupgrade supposedly migrates locks and props, though through buggy behavior that isn't happening.
It's possible that we could upgrade the schema so as to write the entries, and then migrate the other data (locks, props, etc) into the fresh sdb after the entries get written. The code isn't currently set up for that, however.
The other option would be to integrate the schema upgrades and data migration bits more tightly:
Yet another option would be to go straight to $CURRENT skipping intermediate formats, and combine all the steps into one. The benefit is simplicity and not having to support interm development formats long-term. The negative is that the few people using trunk would need to create new working copies, since their upgrade path wouldn't be supported (but we just had to do that for the ASF move, anyway).
-Hyrum (who wants to get this figured out so he can bump the format to store props in the sdb)
------------------------------------------------------
|
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.