Permissions on remote mercurial server

Sean Kelley svk.sweng at gmail.com
Mon Jun 11 03:32:49 UTC 2007


When I have a remote server and I am using ssh to create a new
repository and then push my changes to it, how can I be assured that
group permission with remain writable?

For example, my user account on the remote server sets umask 002.  My
local user likewise sets umask 002.  The remote directory that
repositories are to be added has been set with chmod g+ws.  Yet, when
I do the following:

hg init ssh://hg.myserver.org//data/hg/sw/training

The directory that is created  is drwx-r-s-r-x training

If I am remotely logged into the server and I create a directory  it
does have the correct permissions.

I then do a push:

hg push ssh://hg.myserver.org//data/hg/sw/training

but the fact remains that the directory created and subsequent .hg
folder are not group writable.

Any suggestions on how I should be doing it different?  My situations
is that I have developers who want to publish remote repositories that
others can contribute to.

Thanks,

Sean



More information about the Mercurial mailing list