You can use shell scripting to feed the message of the first one into
the second.
hg commit -m "$(hg log --rev OTHER_REV --template '{description}')"
If you do this often, you can use a shell alias to make it faster.
If you don't want to specify OTHER_REV by hand, you can use revset to
select "the second parent" of the working copy.
hg commit -m "$(hg log --rev 'p2()' --template '{description}')"
On 6/20/25 13:18, Simon Harrison wrote:
I've recently started using the stable / default branching model as
described here:
https://stevelosh.com/blog/2010/05/mercurial-workflows-stable-default/
Everything is going well apart from one slight annoyance. For example,
let's say I make a small change on the default branch and want to
merge that change into my stable branch. If it's only one commit, I'd
like to just simply use the same commit message on both branches:
"Updated project logo"
Is there any way to achieve that or must I type exactly the same thing
twice (once for each branch)?
Cheers,
Simon
_______________________________________________
Mercurial mailing list
Mercurial@lists.mercurial-scm.org
https://lists.mercurial-scm.org/mailman/listinfo/mercurial
--
Pierre-Yves David
_______________________________________________
Mercurial mailing list
Mercurial@lists.mercurial-scm.org
https://lists.mercurial-scm.org/mailman/listinfo/mercurial