On Sun, Oct 07, 2007 at 04:31:01AM +0100, Peter Stirling wrote: > I wrote a lua program that: > Looks for revisions with 'bad' certificates (as reported by "mtn au > certs <rev>") which have private keys available to monotone > (ie "mtn au keys" has a "private_location"), and > Uses the "mtn db execute" command to delete the bad certs > (all certs for that revision by that key because figuring > out the hash of the bad certs was beyond me, however it > does track all the good certs as well as bad for > reinsertion), and finally, > Uses "mtn au cert <rev>" to add the certs back to the database.
If you wanted to be careful you might insert the new certs first, so in case the thing crashes for some reason then you end up with duplicate certs (recoverable) instead of no certs (not so much). But the idea seems right otherwise. -- Nathaniel -- Eternity is very long, especially towards the end. -- Woody Allen _______________________________________________ Monotone-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/monotone-devel
