On Wed, May 26, 2010 at 8:53 AM, Julian Foad <[email protected]>wrote:

> ...
> UPGRADING OLD WORKING COPIES
> ============================
>
> The next step (which can be done in parallel with fixing the above
> problems) is upgrading old WCs.  I have a plan for the procedure to
> upgrade an old WC:
>
>  1. For each pristine text that is present in the old location: if its
> checksum is not stored in the DB row for that node, calculate and store
> its MD-5 checksum in the DB row for that node.  (Or SHA-1 if we've
> switched to using SHA-1 already).
>
>  2. For each pristine text that is present in the old location: install
> a copy of it in the Pristine Store (which includes calculating the other
> checksum) and then delete it from the old location.
>
>  3. Bump the WC format number to indicate the upgrade is functionally
> complete.
>
>
> If anyone wants to tackle any of these, that would be great.  I'll be
> around this week and on holiday next week


As discussed on IRC, I'm going to take a whack at the upgrade code.

-Hyrum

Reply via email to