immutable commit messages, why?
peter.arrenbrecht at gmail.com
Thu Mar 20 08:12:05 CDT 2008
On Thu, Mar 20, 2008 at 12:36 PM, Will Maier <willmaier at ml1.net> wrote:
> On Thu, Mar 20, 2008 at 11:30:27AM +0100, Martin Geisler wrote:
> > Put that way, then I agree with you. Currently you cannot do a commit if
> > nothing has changed, but if that was allowed, then I could imagine that
> > empty commits would be a way to amend the commit messages:
> > hg status
> > M foo.c
> > hg commit -m 'Fixed bug.' # Bad commit message.
> > hg commit -f -m 'Fixed bug 123.' # Better message.
> Is there some reason rollback or mq aren't applicable here?
I thought one could do this much later by updating to the rev with the
bad msg, committing a better msg, then merging. Though I think it
might be hard for the log viewer to associate the new message with the
old commit in this scenario.
More information about the Mercurial