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

Martin Geisler mg at aragost.com
Tue May 31 10:28:13 CDT 2011

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?

Martin Geisler

aragost Trifork
Professional Mercurial support

More information about the Mercurial-devel mailing list