commit message validation, or template commit form?
Steve Borho
steve at ageia.com
Tue Dec 19 22:03:00 UTC 2006
On Tuesday 19 December 2006 3:11 pm, Matt Mackall wrote:
> On Tue, Dec 19, 2006 at 01:57:45PM -0600, Steve Borho wrote:
> > Support for a commit message template is now on the qct tip.
> >
> > == ~/.hgrc ==
> > [ui]
> > commit.template = /home/user/.commitLogTempl.txt
> >
> > I thought about putting this in a [qct] section, but then decided
> > that other commit tools/scripts may want to support this in the
> > future. [ui] seemed the most appropriate place for it.
>
> <grumble>.
>
> Let me just point out that having your template in ~ is a bit silly.
> Because the template is likely to change per project, it ought to be
> in the project root instead.
>
> It'd be better to make up a sensible default place to find the file
> (like `hg root`/.commit.template).
It will likely be the same template for most of your projects, but the
repo root at least gives you some flexibility. I agree it's a better
default location.
--
Steve Borho (steve at ageia.com)
http://www.borho.org/~steve/steveAgeia.asc
Key fingerprint = 3D9C 67D5 F426 4322 075B 0795 C9B2 C3A0 97D0 C090
More information about the Mercurial
mailing list