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

Re: Pristine text storage - status

From: Hyrum K. Wright <hyrum_wright_at_mail.utexas.edu>
Date: Wed, 26 May 2010 09:33:11 -0500

On Wed, May 26, 2010 at 8:53 AM, Julian Foad <julian.foad_at_wandisco.com>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
Received on 2010-05-26 16:33:52 CEST

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