Patch hunk edition
Masklinn
masklinn at masklinn.net
Thu Jan 21 05:18:10 CST 2010
On 21 Jan 2010, at 10:45 , Christian Ebert wrote:
>
> * Masklinn on Thursday, January 21, 2010 at 10:26:40 +0100
>> I know there's been talk about that in the past, mostly for
>> "hunk splitting" (the ability to split a change group in two
>> during e.g. hg record), git has had hunk splitting for quite
>> some time, and with 2.4 darcs added "full" hunk edition
>> (alteration, splitting, deletion and insertion of sections of
>> patch hunks during interactive operations).
>>
>> That gives at least a basic spec/UI of how things could
>> (should) work: http://wiki.darcs.net/HunkEditor
>
> The crecord extension can do the hunk splitting part
>
> http://bitbucket.org/edgimar/crecord/
>
> in a curses interface, very elegant imho.
>
I'm not very fond of curses interfaces. Furthermore, and more importantly, other "interactive" extensions use record (I think) to handle the interactivity part e.g. attic*, which specifically mentions "-i: Use the 'record' extension to interactively select hunks for a shelf".
With hunk splitting in record, extensions such as hg attic would "automatically" get hunk splitting, whereas with crecord having hunk splitting they don't.
masklinn
* I'll disclaim that I'm not overly fond of record-type commits as they allow committing untested code, so one has to go back in the history, check all revisions and amend them if they're broken before pushing, I prefer shelving what I don't want to commit right now, test the revision and then commit it "the basic way".
More information about the Mercurial
mailing list