[Solution for bash] (was: Copy commit message when merging)

2025-06-25 Thread Uwe Brauer via Mercurial
>>> "MC" == Marcos Cruz writes: > Uwe Brauer via Mercurial escribió/skribis/wrote/scrit > (2025-06-24T14:31:10+0200): >> hg commit -m "$(hg log --rev 5 --template '{description}')" >> hg commit -m "$(hg log --rev 'p2()' --template '{description}')" >> >> And I obtain >> Illegal variable name.

Re: Copy commit message when merging

2025-06-25 Thread Uwe Brauer via Mercurial
>>> "MC" == Marcos Cruz writes: > Uwe Brauer via Mercurial escribió/skribis/wrote/scrit > (2025-06-24T14:31:10+0200): >> hg commit -m "$(hg log --rev 5 --template '{description}')" >> hg commit -m "$(hg log --rev 'p2()' --template '{description}')" >> >> And I obtain >> Illegal variable name.

[SOLVED] (was: Copy commit message when merging)

2025-06-25 Thread Uwe Brauer via Mercurial
>>> "MC" == Marcos Cruz writes: > Uwe Brauer via Mercurial escribió/skribis/wrote/scrit > (2025-06-24T14:31:10+0200): >> hg commit -m "$(hg log --rev 5 --template '{description}')" >> hg commit -m "$(hg log --rev 'p2()' --template '{description}')" >> >> And I obtain >> Illegal variable name.

Re: Copy commit message when merging

2025-06-24 Thread Marcos Cruz
Uwe Brauer via Mercurial escribió/skribis/wrote/scrit (2025-06-24T14:31:10+0200): > hg commit -m "$(hg log --rev 5 --template '{description}')" > hg commit -m "$(hg log --rev 'p2()' --template '{description}')" > > And I obtain > Illegal variable name. It does not seem the reason of that error

Re: Copy commit message when merging

2025-06-24 Thread Uwe Brauer via Mercurial
>>> "PD" == Pierre-Yves David writes: > 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 spe

Re: Copy commit message when merging

2025-06-23 Thread Pierre-Yves David
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 s

Copy commit message when merging

2025-06-20 Thread Simon Harrison
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