[darcs-users] Doubts about commuteFilepatches
iago.abal at gmail.com
Wed Oct 27 11:40:00 UTC 2010
Let me ask for some details I see in Darcs code about commuteFP:
commuteFP :: FileName -> (FilePatchType :< FilePatchType) C(x y) -> Perhaps
> ((Prim :< Prim) C(x y))
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))ç
Why do you pattern match agains Hunk patches with empty "old" and "new"
content? Are they sensible?
Thanks in advance.
Iago Abal Rivas
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the darcs-users