"qnew" + "transplant"

Brendan Cully brendan at kublai.com
Tue Nov 20 17:18:19 UTC 2012


On 12-11-20 06:13 AM, Benjamin Smedberg wrote:
> Is there a shortcut which combines `hg qnew` and `hg transplant`? I
> often find myself backporting patches by doing something like:
>
> hg transplant -s ../trunk-repo csetid
> hg qimport -r.
> hg qref (add backport/approval information to the commit message)
> hg qfin
> hg push

For this particular workflow, you might like the --filter option.
The wiki page http://mercurial.selenic.com/wiki/TransplantExtension
has an example of a filter script to add signed-off-bys to changesets as 
they are transplanted.





More information about the Mercurial mailing list