Suffering from CVS mindset

Greg Ward greg-hg at gerg.ca
Sat Apr 17 13:36:55 CDT 2010


On Fri, Apr 16, 2010 at 11:04 AM, Haszlakiewicz, Eric
<EHASZLA at transunion.com> wrote:
> Ok, thanks.  I am actually going to try to make this the default,
> probably by replacing
> .../lib/python2.6/site-packages/mercurial/templates/map-cmdline.default
> .

You probably don't want to do that.  For one thing, it won't work: by
default, Mercurial doesn't actually use the default style; it has a
hardcoded implementation of the same thing.  You have to say
"--style=default" to use map-cmdline.default.  Yeah, it's weird, but
there it is. (I think it's a performance hack: the hardcoded default
is much faster than processing a style file.)

For another thing, your customization will be clobbered next time you
upgrade Mercurial.

What you *really* want to do is put

  [ui]
  style = <filename>

in your ~/.hgrc, where <filename> is the path to the style file I posted.

Greg


More information about the Mercurial mailing list