record and crecord: proposal to merge into core

Durham Goode durham at fb.com
Wed Mar 11 09:34:12 CDT 2015


On 3/10/15 9:09 PM, Gregory Szorc wrote:
> On Mon, Mar 9, 2015 at 10:21 AM, Laurent Charignon <lcharignon at fb.com 
> <mailto:lcharignon at fb.com>> wrote:
>
>
>          Step 3 Add interactive selection to other existing command
>               - Any suggestion here?
>
>
>
> A question that I semi-frequently get is how to "split" a commit. The 
> ability to use the "edit" action in histedit combined with "hg record" 
> is somewhat arcane to discover. I wonder if there is room for a 
> dedicated "hg split <rev>" command that does the equivalent of:
>
> 1. update to requested revision
> 2. "uncommit" all changes made by the commit (rough equivalent of "hg 
> uncommit" from evolve)
> 3. Allows you to use "hg record" until status reports no modifications
> 4. Automatically rebases children changesets when done
>
> This is essentially "hg histedit" with the "edit" action on 1 
> changeset. Perhaps we could implement "hg split" in terms of a 
> histedit recipe? Maybe we should be moving histedit's "action 
> processing" into core as well? I know I've wanted to do things in 
> extensions like rewrite commit messages in a changeset in the middle 
> of the stack. It's quite tedious. </scope bloat>
I was talking with Laurent about this a bit too.  Especially with 
crecord, I would love the ability to have a multi-column view and be 
able to just tap chunks left and right to put them in separate commits.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20150311/bd92102e/attachment.html>


More information about the Mercurial-devel mailing list