[darcs-users] apply a darcs patch to non-darcs tree

Florent Becker florent.becker at ens-lyon.org
Thu Nov 4 13:24:52 UTC 2010


> 
> I naively hope that a .dpatch file contains as much (and more) 
> information as a .patch file.  My naive hope is clearly (if Eric and 
> Christian's implication is correct) wrong.  An explanation of why it 
> can't work would be nice somewhere (e.g. of why one would think it might 
> work, and where that reasoning goes wrong).  

It should be doable, at least partially. The problem i see is that non-hunk 
changes (file moves, replaces…) do not have a representation in diff. So
you'd have to either fail on such changes, or output a diff + a shell script. 

Otherwise, if you have a hunk-only dpatch, then the translation should not be
too  hard, but of course, the diff in question will only make sense in the 
corresponding source tree (as you pointed out, you have more information in
the .dpatch than in the .patch).

Florent




More information about the darcs-users mailing list