commit message lines in changelog

Matt Mackall mpm at selenic.com
Fri Feb 24 21:28:56 UTC 2012


On Fri, 2012-02-24 at 13:13 -0800, Alexander Leschinsky wrote:
> On Feb 24, 11:34 pm, csosz78 <csos... at gmail.com> wrote:
> > Im filling more line in the commit message field for example:
> > FIX: message1
> > FIX: message2
> >
> > When I call
> > hg log --style changelog > log.txt
> >
> > I have got these message lines in one line: FIX: message1 FIX: message2,
> 
> I'm sure, it's client-side problem
> 
> hgsubversion>hg log --style changelog -r tip
> 2012-01-31  Augie Fackler  <durin42 at gmail.com>
> 
>         * tests/test_fetch_mappings.py:
>         filemap tests: check the attributes we care about, rather than
> shas
> 
>         Also made the test a little bit more extensive to satisfy my
> own
>         paranoia about the feature behavior.
>         [4e203a47102a] [tip]

The "changelog" style does line re-wrapping so it looks like those
horrible legacy GNU Changelog files from the days before people had
globally-accessible version control systems.

http://www.selenic.com/hg/file/816211dfa3a5/mercurial/templates/map-cmdline.changelog

This is the relevant bit:

{desc|fill68|tabindent|strip}

"take the description, rewrap to 68 columns, tab indent it, remove
trailing whitespace"

Solution: don't use the silly changelog style.
Alternate solution: separate paragraphs with blank lines.

-- 
Mathematics is the supreme nostalgia of our time.





More information about the Mercurial mailing list