Hi Kowey & all,

I have been reading a lot of code lately to find a point where to
split up a hunk during SelectChanges. I think this might be beyond
my current understanding of darcs' internals.

My Problem: text_select uses PatchChoices lists where it zips through
and pushes decided TaggedPatches to either side. To be able to split
up a hunk I would need to:

- Extract the patch from a TaggedPatch, I guess with tp_patch tp
- Feed the output of showPatch to an editor (that is the easy part
IMHO)
- Search for markup on how to split up the patch (easy)
- create two new Patchy patches (I don't know how to do that)
- create new TaggedPatches for those two patchys (seems easy, just
call the constructor)
- add them to the tp_todo list for further inspection ( probably easy )

For the last three points I don't know if
- how do I create patches in the first place
- this is going to break patch properties
- if it is possible at all at this point

Hm, having formulated these questions I am not ready to throw in
the towel yet. Who has got some time to give me a hand here and
bring my understanding of patches up to speed?

Kind regards,

Christian

-- 
You may use my gpg key for replies:
pub  1024D/47F79788 2005/02/02 Christian Kellermann (C-Keen)

Attachment: pgpBPNROiKKFM.pgp
Description: PGP signature

_______________________________________________
darcs-users mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/darcs-users

Reply via email to