How to add signoffs (Signed-Off-By: ...) ?

Kirill Smelkov kirr at landau.phys.spbu.ru
Fri Jun 27 16:37:24 CDT 2008


Good evening,

I'd like to ask a question about how to add signoffs like people do in
Linux kernel.


My workflow is something like this:

When someone sends a patch series to our -patches list, I'd like to
import it into staging tree and add my "Signed-Off-By: me", or
"Reviewed-By: me".

The problem is that to my knowledge and understanding of mercurial
codebase this is not possible with e.g.  commit/precommit/pretxncommit
hooks.

I know transplant extension has --filter option, but using transplant
for the task seems like an overkill.

To import mbox I use something like

  cat ~/Mail/mbox-with-patches | formail -d -s hg import -

And as 'hg import' boils down to repo.commit it would seem convenient to
me if `repo.commit` has some mechanism (option ?) to add signoff.

Just with my limited time I don't see how best it could be done, so
please

  could someone suggest something?


Thanks beforehand.

-- 
    Всего хорошего, Кирилл.


More information about the Mercurial mailing list