[darcs-users] darcs convert

Max Brown max.e.brown at gmail.com
Fri Jul 31 17:20:09 UTC 2009


> What I'd like for you to do is to create a version of your repository up
> to the patch in question.  I think you can darcs init and pull.  Perhaps
> darcs pull --matches 'touch irates/irates.tex' will be enough to limit
> the choice of patches to something small...

$ darcs init --old-fashioned-inventory
$ darcs pull --matches 'touch irates/irates.tex' ~/work/hrm
Tue Nov 28 20:13:33 CET 2006
  * Initial import.
Shall I pull this patch? (1/95)  [ynWvplxdaqjk], or ? for help: y

[...] lots of patches.

Mon Jan 19 20:29:44 CET 2009
  * Added some ideas / notes.
Shall I pull this patch? (95/95)  [ynWvplxdaqjk], or ? for help: y

darcs failed:  Error applying hunk to file ./irates/irates.tex
Your repository is now in an inconsistent state.
This must be fixed by running darcs repair.

The hunk here seems to be:
$ darcs diff --patch 'Added some ideas / notes.' irates/irates.tex
Mon Jan 19 20:29:44 CET 2009
  * Added some ideas / notes.
24d23
< %   In fact, state how the swap can be valued, but do valuation in exercises.
26a26,31
> % * Proper explanations of caps, floors, swaptions a la Hull ch 22.
> % * Cap price = floor price + value of swap : put-call parity for floors,
> %   caps and swaps.  Hull p. 517
> % * Hull: Collar: pick cap and floor price such that they are equal, value of
> %   entering collar is zero. ibid.
>


That looks like it is a different patch causing the problem. How do I
figure out which patch is causing the problem?


More information about the darcs-users mailing list