hgrc as symlink

Wagner Bruna wagner.bruna+mercurial at gmail.com
Mon Nov 16 13:45:08 CST 2009


Hello,

Igor Lautar wrote:
> I'm wondering if there are any downsides to making hgrc a symlink?
> I could not think of any, but I rather ask than getting bitten later on.
> 
> What I want to achieve:
> 
> * we have a bunch of repos on one location
> * some repos are related, some not
> * there are different configurations for hooks, notifications etc.
> * all repos are accessible via remote ssh://
> 
> Now, as its cumbersome to fix something by first logging to machine
> and doing it from there, I would rather keep all configuration in
> single hg repo (also for versioning and other benefits), and then
> commit new changes and push. If all repos are to link their hgrc to a
> file in this 'configuration' repo, changes could take affect
> immediately.

The symlink approach works, but may get quite cumbersome to update if you 
frequently add or remove repositories.

See if this extension helps:

http://mercurial.selenic.com/wiki/ReposettingsExtension

Regards,
Wagner

> Besides this, is there a hook to update remote working dir on
> each push?
>
> What about hgrc symlink pointing to working dir of same repo
> (to which hgrc belongs)?



More information about the Mercurial mailing list