[darcs-users] Doubts about commuteFilepatches

Iago Abal iago.abal at gmail.com
Tue Nov 23 17:12:11 UTC 2010


Yes, I'm talking about this two cases.

On Tue, Nov 23, 2010 at 5:02 PM, Ian Lynagh <igloo at earth.li> wrote:

> On Tue, Nov 23, 2010 at 01:25:01PM +0000, Iago Abal wrote:
> >
> > What commuteFP does is just trivially commute any id-hunk (stupid-hunk
> does
> > not seem a good name, since they make sense), and this is definetly wrong
> > (at least in theory, since effect-preserving is no longer true). So you
> was
> > right Eric, Darcs could end up trying to apply a Hunk f 20 [] [] when f
> has
> > 10 lines.
>
> You're talking about these, right?:
>
> commuteFP f (Hunk line1 [] [] :< p2) =
>    seq f $ Succeeded (FP f (unsafeCoerceP p2) :< FP f (Hunk line1 [] []))
> commuteFP f (p2 :< Hunk line1 [] []) =
>    seq f $ Succeeded (FP f (Hunk line1 [] []) :< FP f (unsafeCoerceP p2))
>
> These look wrong to me too. If nothing else, I'd expect them to update
> the line numbers in the Hunk/Hunk case.
>
>
> Thanks
> Ian
>
> _______________________________________________
> darcs-users mailing list
> darcs-users at darcs.net
> http://lists.osuosl.org/mailman/listinfo/darcs-users
>



-- 
Iago Abal Rivas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osuosl.org/pipermail/darcs-users/attachments/20101123/236feb2d/attachment.html>


More information about the darcs-users mailing list