[PATCH] rebase: add -m/--message to rebase --collapse (issue2389)

Matt Mackall mpm at selenic.com
Tue Mar 15 18:34:03 CDT 2011


On Tue, 2011-03-15 at 22:21 +0100, Radomir Dopieralski wrote:
> # HG changeset patch
> # User Radomir Dopieralski <sheep at stxnext.pl>
> # Date 1300210416 -3600
> # Node ID 9c45195f9e56eb44db6ed7658d7139e4d5f14a5f
> # Parent  0652b2da832daada866a68f7a4359227570c2447
> rebase: add -m/--message to rebase --collapse (issue2389)
> 
> When collapsing changesets with rebase, you get a chance to edit the commit
> message manually, but there is no way to pass this message from the command
> line. This patch adds a `--message` (with short form `-m`) and `--logfile`
> (with short form `-m`) options to the rebase command. These options suppresses
> the generation of the default commit message, and instead use the message
> provided in the option (in case of `-m`) or in the file it points to (in case
> of `-l`).
> 
> If you use this option without the `--collapse` option, it will raise an
> error.

Queued with a doc tweak from Patrick, thanks.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list