[PATCH] templater: add os.path.expanduser('~/.hgtemplates') to path

Matt Mackall mpm at selenic.com
Fri Oct 15 17:48:29 CDT 2010


On Fri, 2010-10-15 at 14:13 +0200, Dale Wijnand wrote:
> # HG changeset patch
> # User Dale Wijnand <dale.wijnand at gmail.com>
> # Date 1287140714 -7200
> # Node ID d65e497b5c708b746c428c751394ea9c8c30e9d9
> # Parent  80a3d1121c106fd972fa84423f55b2ce2e9407c9
> templater: add os.path.expanduser('~/.hgtemplates') to path
> 
> This adds ~/.hgtemplates to the paths searched for templates. It
> allows for users without superuser priviledges to add templates which
> are easily accessable (without having to give the full path to the
> template.)

This should probably be an hgrc setting of some sort instead of
hardcoded.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list