Issue39

Title make mercurial look in ../etc/... for config
Priority feature Status resolved
Superseder Nosy List tksoh, tonfa, vadim
Assigned To vadim Topics

Created on 2005-10-26.03:54:45 by vadim, last changed 2006-01-01.00:06:58 by vadim.

Files
File name Uploaded Type Edit Remove
hgrc.patch vadim, 2005-11-04.19:50:13 text/x-patch
Messages
msg328 (view) Author: vadim Date: 2006-01-01.00:06:58
looks ok now.
msg291 (view) Author: tonfa Date: 2005-12-12.11:58:57
vadim, you added a "print" with your merge. can you correct it ?
msg290 (view) Author: tonfa Date: 2005-12-12.09:19:04
The problem is that i have $HOME/bin and not $HOME/local/bin in my path, but if
you cannot retrieve the information with distutils it doesn't matter.

I can change my setup if i need to.

thanks
msg288 (view) Author: vadim Date: 2005-12-11.23:34:28
i have pushed the change, as it seems safe.
msg287 (view) Author: vadim Date: 2005-12-11.23:26:52
distutils does not make it possible to do what you need.

but i tried doing this:

mkdir $HOME/local
cd $HOME/local
ln -s ../bin
PATH=$HOME/local/bin:$PATH
hg

and it looked in $HOME/local/etc/mercurial for me.

so i do not understand the problem you say you have.
msg154 (view) Author: vadim Date: 2005-11-07.05:30:25
ok, thank you. i will look into using distutils instead.
msg150 (view) Author: tksoh Date: 2005-11-06.02:33:46
Perhaps you can make ~/local/etc/ a symlink to ~/etc/. Distutils looks like the
better channel to handle this. Either way, I feel Hg should support the custom
etc/hgrc location per the installation directory.
msg148 (view) Author: tonfa Date: 2005-11-05.15:17:29
it doesn't work for me:
i install hg in ~/local, but ~/local/bin is a symlink to ~/bin
i think the solution should be distutils based.

ps: if i correctly understood matt and thomas, status=testing means that the
patch is in matt's repo and resolved that it is released.
msg58 (view) Author: tksoh Date: 2005-10-26.03:58:18
+1 from me.
msg57 (view) Author: vadim Date: 2005-10-26.03:54:45
i am trying to install mercurial on a shared filesystem for many users and many
computers. mercurial now looks at ~/.hgrc and /etc/mercurial/hgrc and
/etc/mercurial/hgrc.d, but this is not useful if i am sharing an install over
nfs or smb with many computers.

it would be nice if mercurial finds its install directory using sys.argv[0] or
distutils. if it is installed in /nfs/foo/bin, it could look in
/nfs/foo/etc/mercurial as well as where it looks now.

without this, is really painful to share install stuff for many users and computers.
History
Date User Action Args
2006-01-01 00:06:58vadimsetstatus: testing -> resolved
nosy: vadim, tonfa, tksoh
messages: + msg328
2005-12-12 11:58:58tonfasetnosy: vadim, tonfa, tksoh
messages: + msg291
2005-12-12 09:19:06tonfasetnosy: vadim, tonfa, tksoh
messages: + msg290
2005-12-11 23:34:28vadimsetstatus: in-progress -> testing
nosy: vadim, tonfa, tksoh
messages: + msg288
2005-12-11 23:26:53vadimsetnosy: vadim, tonfa, tksoh
messages: + msg287
2005-11-09 00:23:19tksohsetnosy: + tksoh
2005-11-07 05:30:25vadimsetnosy: vadim, tonfa
messages: + msg154
2005-11-06 02:33:46tksohsetnosy: vadim, tonfa
messages: + msg150
2005-11-05 15:17:30tonfasetstatus: testing -> in-progress
nosy: + tonfa
messages: + msg148
2005-11-04 19:52:38vadimsetassignedto: vadim
2005-11-04 19:52:27vadimsetstatus: chatting -> testing
2005-11-04 19:50:13vadimsetfiles: + hgrc.patch
2005-10-26 03:58:18tksohsetstatus: unread -> chatting
messages: + msg58
2005-10-26 03:54:45vadimcreate