[PATCH] Check for .hgrc files in ancestor directories above the repository

Matt Mackall mpm at selenic.com
Sun Jan 13 11:24:18 CST 2008


On Sun, 2008-01-13 at 09:20 +0100, Peter Arrenbrecht wrote:
> @mpm: Can you quickly tell us if the hash of rev0 (`hg id -r0`) is
> cheap to get anyway, so we needn't worry? (Being cheap to get in
> theory would suffice.)

Yes and no. It means opening and parsing the changelog index, which is
fairly cheap but isn't free.

But there's a much bigger problem with this approach: we've just spent a
lot of work making hgrc files get read before we actually open a
repository. This lets us localize extensions to particular repositories,
etc.

The .hgrc in parent directories thing was much more elegant and I wasn't
particularly convinced by the arguments against it.

-- 
Mathematics is the supreme nostalgia of our time.



More information about the Mercurial-devel mailing list