commit message lines in changelog
Snidely
snidely.too at gmail.com
Sat Feb 25 08:22:17 UTC 2012
On Feb 24, 1:28 pm, Matt Mackall <m... at selenic.com> wrote:
> 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.
Of the supplied styles, xml looks like a decent choice.
I'm a happy Tortoise user (switching back and forth between GUI and
commandline).
For one of my archives, I have the following in the [alias] section
of .hg\hgrc
[alias]
shipper = log --template "---\n{date|isodate} {author} {node}\nB:
{branches|none
mpty} T: {tags|nonempty}\n{desc|fill68}\n{files}\n\n"
I'd probably take out the fill68 before using it in my other archives,
as I tend to use multiple lines ... at least 1 line per file, if I'm
checking in multiple files (such as when adding a new method to a
class, and then consuming it in the calling class). This is likely to
be a point where local custom makes a difference in how you want to
tune things.
I may add an alias for this template, too:
hg log --template "{rev} {branch} {tags} {bookmarks} \n{desc}\n\n"
It's kind of fun to play around with these.
/dps
More information about the Mercurial
mailing list