[darcs-users] darcs convert

Eric Kow kowey at darcs.net
Thu Aug 13 16:38:19 UTC 2009


Hi Max and all,

Indeed, many thanks for getting back to us!  How would you feel about
writing this up as an FAQ?
  http://wiki.darcs.net/FrequentlyAskedQuestions

Something like "darcs convert fails!"

Cheers,

Eric

On Thu, Aug 13, 2009 at 17:48:53 +0200, Petr Rockai wrote:
> > Here is what I did in the end, and this seems to have worked:
> > 1) I pulled patches until I got to the patch that was failing.
> > 2) I tried to apply the patch manually to see why it was failing (it
> > replaced a line, where the text to be replaced in the actual file was
> > different from the text that the patch wanted to replace...? I don't
> > know how I managed to create that confusion in the first place.)
> This sounds like a typical case of pristine corruption. Plain (non-hashed)
> repositories are very susceptible to this, since they cannot detect the problem
> until they try to apply the resulting patch on a non-corrupt version of the
> pristine (which could be months or years after the patch was first created, in
> private repositories... even for branches of public repositories, discovering
> this can take a rather long time). That's also why hashed repositories are
> strongly encouraged.
> 
> > 3) I then edited the corresponding patch in _darcs/patches so that it
> > would not fail (gunzip, then edit, then gzip).
> > 4) I then did a 'darcs get' to get a new copy of the fixed repository.
> > This now worked.
> > 5) I did a 'darcs convert' on the new copy, which now worked.
> Great! Thanks for sharing the notes on this. And also thanks for going through
> the process.


-- 
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
PGP Key ID: 08AC04F9
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.osuosl.org/pipermail/darcs-users/attachments/20090813/f28eb873/attachment.pgp>


More information about the darcs-users mailing list