[PATCH] Add %includeifexists, a new type of hgrc include

Matt Mackall mpm at selenic.com
Tue May 31 10:46:22 CDT 2011


On Tue, 2011-05-31 at 17:28 +0200, Martin Geisler wrote:
> Tom Fitzhenry <tom at tom-fitzhenry.me.uk> writes:
> 
> > # HG changeset patch
> > # User Tom Fitzhenry <tom at tom-fitzhenry.me.uk>
> > # Date 1306801124 -3600
> > # Node ID 029faced02ef51b7de5c6603f81580267d669c1e
> > # Parent  f6a433671c06ea7986e0cf2c54686d1af7f22ba1
> > Add %includeifexists, a new type of hgrc include
> 
> Great, we've needed that! :-)
> 
> > Proposal: A new type of include, %includeifexists, which behaves as
> > %include but does not cause a parse error if the file does not exist.
> 
> The name is a little long, but it is very clear. I was thinking of
> calling such an include "%tryinclude", what do you think of that?

Sounds good to me.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list