[Bug 4256] New: Avoid editing commit message when folding a patch with histedit

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Tue May 20 16:07:11 CDT 2014


http://bz.selenic.com/show_bug.cgi?id=4256

          Priority: normal
            Bug ID: 4256
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: Avoid editing commit message when folding a patch with
                    histedit
          Severity: bug
    Classification: Unclassified
                OS: All
          Reporter: zeratul976 at hotmail.com
          Hardware: All
            Status: UNCONFIRMED
           Version: unspecified
         Component: histedit
           Product: Mercurial

Here's an extremely common use case of histedit for me:

  1. Write some code that belongs in a patch that's not
     the last patch I've committed (if it's the last
     patch, I'd just use amend).

  2. Commit into a temporary commit.

  3. Use histedit to fold the temporary commit into the
     commit it belongs to.

In such cases, I invariably want to keep commmit message of
the commit I'm folding into, and it's annoying to have the
commit message editor open up with:

  <my real commit message>
  ***
  <my temporary commit message>

and have to delete the latter two lines and save.

It would be nice if there were an action in histedit which
is like 'fold' but avoids this editing step and just keeps
the first patch's commit message.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list