[PATCH] Check for .hgrc files in ancestor directories above the repository
Matt Mackall
mpm at selenic.com
Thu Jan 10 09:59:20 CST 2008
On Thu, 2008-01-10 at 18:42 +0300, Maxim Dounin wrote:
> Hello!
>
> On Thu, Jan 10, 2008 at 10:02:53AM -0500, Jesse Glick wrote:
>
> ># HG changeset patch
> ># User Jesse Glick <jesse.glick at sun.com>
> ># Date 1199977313 18000
> ># Node ID 7f1e5d43bbbe33c852af9ed352e8da9d0ecd9c9c
> ># Parent 0990036ceba2347d057b5b93b4b7793c2e1025fc
> >Check for .hgrc files in ancestor directories above the repository.
> >This gives you an easy way to configure e.g. ui.username for a group of related
> >repositories, without needing to remember to edit .hg/hgrc in each clone. #918.
> >Changes since first submission:
> >- minor order change in docs for clarity (thanks Peter Arrenbrecht)
>
> Could you please make this optional and off by default? I really
> think this breaks POLA.
What difficulties are you expecting to encounter?
Nested repos shouldn't be a problem - they use .hg/hgrc, which won't be
in the path back to root. The only .hgrc file you're likely to run into
(because it's the only place we currently support it) going up a tree is
in ~.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial-devel
mailing list