[darcs-users] What if darcs is generating too inclusive of hunks?

Yuval Kogman nothingmuch at woobling.org
Thu Nov 9 19:35:27 UTC 2006


On Thu, Nov 09, 2006 at 10:30:36 -0600, Drew Vogel wrote:

> But darcs is generating a hunk that includes the code that I've shortened to [... a ton of code ...] above because it finds the "summarize-calls-by-interviewer" text below it. I know I should have 
> made these changes separately, but it's a little late now :) Is there a way to make darcs be less aggressive/exhaustive while it is diff'ing?

Fine tuning is difficult on the algorithm level. See also the bug[s]
on the tracker requesting the addition of a hunk editor option,
whereby you can edit the diff lines that are included in the patch.

The real solution is to darcs get the repo to a /tmp dir, edit
the parts you want, and record. then you can  copy your file to a
new place in your original working dir, revert, pull from the tmp
repo, and then move the file over the updated one, and record the
rest of the change.

It's cumbersome, but I do this often, I have the same problem as you
;-)

-- 
  Yuval Kogman <nothingmuch at woobling.org>
http://nothingmuch.woobling.org  0xEBD27418

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.osuosl.org/pipermail/darcs-users/attachments/20061109/5736e8b8/attachment.pgp 


More information about the darcs-users mailing list