Revising commit message?

Martin Geisler mgeisler at mgeisler.net
Tue Dec 18 19:48:05 UTC 2007


Neal Becker <ndbecker2 at gmail.com> writes:

> Neal Becker wrote:
>
>> I see I made a mistake in one of my commit messages. Any way to
>> revise the message (from several commits back)?
>
> Actually, this is funny. I was looking at the result of hg serve. In
> fact, the commit message was fine, but hg serve only showed the first
> line of the message, unless you looked at the 'changelog'. I thought I
> had left some items off the changelog, but actually it had multiple
> lines.
>
> It would be good if such truncated lines were shown with some hint
> that there was more.

This is the normal behaviour in Mercurial -- the first line should be a
short summary of the change, and the following lines can be used to
describe the change in greater detail. Please see this section of the HG
book:

  http://hgbook.red-bean.com/hgbookch2.html#x6-470002.7.3

-- 
Martin Geisler

      Do your secure multi-party computations (SMPC) with VIFF,
              the Virtual Ideal Functionality Framework.
                     Download at http://viff.dk/




More information about the Mercurial mailing list