[issue918] Option to copy some of .hg/hgrc upon local clone
Steve Borho
steve at borho.org
Wed Jan 9 07:59:30 CST 2008
On Mon, 2008-01-07 at 20:34 +0000, Jesse Glick wrote:
> New submission from Jesse Glick <jesse.glick at sun.com>:
>
> Sometimes there are important pieces of configuration in .hg/hgrc which (1)
> cannot be in global config, (2) would make sense in most or all clones of that
> repo as well (just not in unrelated repos).
>
> In particular, ui.username may need to have a project-specific value. For
> working on Hg sources, I want to use my full email address. For working on
> NetBeans sources, I want to use 'jglick' - a login ID tied to authentication and
> other site functions such as bug tracking.
>
> When doing an initial clone of the remote repository, I need to remember to set
>
> [ui]
> username=jglick
>
> which is OK. But when I do a local clone, I need to remember to set it again,
> which is irritating.
>
> It would be nice if there were some way to mark in hgrc that certain sections
> ought to be copied to the new hgrc after a local clone (subject to the normal
> security checks, i.e. only if cloned by the same user). Perhaps
>
> [clone]
> username.ui =
+1 on this. I would really like to be able to put into my public facing
repositories:
[clone]
email.to = my-email at example.com
--
Steve Borho (steve at borho.org)
http://www.borho.org/~steve/steve.asc
Key fingerprint = 2D08 E7CF B624 624C DE1F E2E4 B0C2 5292 F2C6 2C8C
More information about the Mercurial-devel
mailing list