Where to install mercurial extensions so you do not have to specify their path in .hgrc? -


where install mercurial extensions not have specify path in .hgrc?

the documentation says can put them in mercurial path, that's not clear is.

i want install extensions available mercurial user form machine, without having modify each user .hgrc file.

note: interested solution ubuntu, debian , centos, if matters.

details: 1 of extensions want deploy https://bitbucket.org/facebook/remotefilelog made facebook suprisnly missing publish on pypi.

first, if want install extensions globally, best choice may in global hgrc file rather having users locally. if enable extension in /etc/mercurial/hgrc, enabled users.

you can enable them in <install-root>/etc/mercurial/hgrc, <install-root> parent directory of directory mercurial executable installed. e.g., if mercurial executed via /opt/local/bin/hg, <install-root> /opt/local. however, more fragile, since (by design) symbolic links aren't followed. example, if user links mercurial ~/bin/hg, ~/etc/mercurial/hgrc consulted instead them.

if want make extensions available user, not enable them default, have go in python site-packages directory, same normal extensions. global python installation, assuming mercurial uses that; however, can use virtualenv have mercurial-specific python installation, can install extensions , other stuff without polluting main python installation. normal setup.py script of extension should deal either case (e.g., setup.py of evolve extension put evolve.py in site-packages/hgext directory).


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -