Equivalent of rcs -m to modify log message
Martin Geisler
mg at lazybytes.net
Sun Feb 21 11:51:46 UTC 2010
MPark <parker at cyberdude.com> writes:
> Does Hg provide a way to change the text message assocaited with a
> revision in the way that RCS does with rcs-m[rev no]:"Some updated
> message"?
No, you cannot change the commit message, especially not if the
changeset in question has already been published. The commit message is
"baked into" the revision and forms part of the revision's identity (the
hash value).
While you cannot change a commit message (and keep the hash constant),
you can of course re-do the change but with another commit message. That
will result in a new revision being made. You'll then have to delete the
other revision, the one with the bad commit message.
You can only reliably delete revisions that have not been published, so
you should only do this for local revisions. The histedit and mq
extensions will let you adapt unpublished revisions:
* http://mercurial.selenic.com/wiki/HisteditExtension
* http://mercurial.selenic.com/wiki/MqExtension
See also
* http://mercurial.selenic.com/wiki/EditingHistory
--
Martin Geisler
VIFF (Virtual Ideal Functionality Framework) brings easy and efficient
SMPC (Secure Multiparty Computation) to Python. See: http://viff.dk/.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20100221/e2feae2f/attachment.asc>
More information about the Mercurial
mailing list