[darcs-users] darcs patch: Add forceHashSlurped that hashes the slu... (and 1 more)

David Roundy daveroundy at gmail.com
Mon Sep 1 22:14:24 UTC 2008


On Mon, Sep 1, 2008 at 12:02 PM, Petr Rockai <me at mornfall.net> wrote:
> another issue crossed my mind though: the abolition of newpristine is only
> applicable to hashed repositories, although the fix could also benefit
> old-style ones. Hmm. On a second thought, I think that we could just create
> pristine.hashed even in old-style repos, and special case the repair
> finalisation code, which would:
>
> In hashed repositories, compare the previous pristine root hash with the newly
> computed one, and if they mismatch, just write out a new hashed_inventory (and
> tell user, of course);
>
> in old-style repos, do the checkPristineAgainstSlurpy as we do now and rm -rf
> pristine.hashed after either fixing pristine or concluding it's been all right
> to start with (and clean the global cache, I guess).
>
> Any obvious problems with that?

None that I see.  It does sound like a nice solution.  With your
variant of clean_pristine that accepts a list of roots, this ought to
be pretty clean, too (no pun intended).

David


More information about the darcs-users mailing list