[issue1669] allow setting username and message with transplant extension
James C. McPherson
mercurial-bugs at selenic.com
Tue May 19 09:27:30 CDT 2009
New submission from James C. McPherson <jmcp at opensolaris.org>:
While working on some mechanics for the OpenSolaris ON gate, I came across
a need to write something very similar to the transplant extension. The
extension as it stands at the moment doesn't allow you to force use of a
specific username for changeset comments, nor does it really allow you to
for use of a specific message for those comments. I've got a diff of changes
that I've made which allow this to work.
Summary of changes is as follows:
(1) added a --username USERNAME option, to set the username used
for the changeset comments as transplanted into current repo
(2) added a --message MESSAGE option, to force the message used
to the changeset comments that are transplanted into the current
repo.
(3) added code to turn _off_ the --filter option iff --message is
specified as well.
(4) added pydoc for the new options and behaviour
Tested with the following:
== zfs snapshotted workspace of onnv_111
=== hg transplant -s /export/onnv-clone (revision)
(rollback)
=== hg transplant --username "jmcp <James.McPherson at Sun.COM>" \
-s /export/onnv-clone (revision)
(rollback)
=== hg transplant --username "jmcp <James.McPherson at Sun.COM>" \
--message "Respin CR into onnv_111b" -s /export/onnv-clone (revision)
(rollback)
=== hg transplant --message "Respin CR into onnv_111b" \
-s /export/onnv-clone (revision)
(rollback)
=== hg transplant --message "Respin CR into onnv_111b" \
--filter ./filtername -s /export/onnv-clone (revision)
{{message about disabling filter, then applied with message}}
----------
files: transplant.py.diff
messages: 9373
nosy: jmcp
priority: wish
status: in-progress
title: allow setting username and message with transplant extension
____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue1669>
____________________________________________________
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: transplant.py.diff
Url: http://selenic.com/pipermail/mercurial-devel/attachments/20090519/b2f8e3d3/attachment.txt
More information about the Mercurial-devel
mailing list