How to add signoffs (Signed-Off-By: ...) ?
Douglas Philips
dgou at mac.com
Sat Jun 28 10:14:31 CDT 2008
On 2008 Jun 28, at 8:56 AM, Kirill Smelkov wrote:
>>> Gregory, Peter, thanks for the tips.
>
> I always knew about MQ, but my aim was to automate this procedure, so
> I've crafted attached hg-import-signoff script -- it works the same
> way
> as 'hg import' but adds 'Signed-Off-By'.
>
> What do you think about it?
Isn't there someway to do it without destroying the originally
submitted changeset?
If I understand your import/rollback/commit strategy, the changeset
submitted for signoff and the changeset that is "the signed off
changeset" must always be different...
Aside from the chance that some other change can happen by accident,
if the signed-off-changeset is pulled back into a working tree, hg
can't recognize that it is already there.
I'm guessing that if you want to sign off on a patch rather than a
changeset, modifying the patch itself might work.
It feels to me that signoffs are a lot like tags, meta-data about the
repository (committed changesets in this case), and maybe are amenable
to the same kind of solution. Just tossing out an idea off the cuff,
why not have an approved/signed-off file. Pull the changeset, add a
signed off line, commit. Just as 'hg tag' can modify a file and commit
the change, so could an extension such as 'sign-off'.
--Doug
More information about the Mercurial
mailing list