[PATCH] umask support for `hg serve`

Jan Hudec bulb at ucw.cz
Mon Dec 19 13:27:10 UTC 2005


On Sun, Dec 18, 2005 at 22:16:21 -0600, Matt Mackall wrote:
> On Sun, Dec 18, 2005 at 08:21:43PM -0700, G? Weijers wrote:
> > Correct me if I'm wrong but does 'hg push ssh://<host>/<path>' not  
> > call 'hg -R <path> serve --stdin' on the target host?
> 
> It does. I was thinking of only the http path.
> 
> > It would be very useful to be able to set the umask to 002 to make  
> > sure that a small group of developers with write access to a  
> > repository create files group-writable.
> 
> Are you familiar with the 'chmod g+sw repo/' trick?

Turning on SGID bit does NOT imply the files are created writable by group.
You do have to set umask to 002 for that.

-- 
						 Jan 'Bulb' Hudec <bulb at ucw.cz>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20051219/cae4c2a0/attachment-0001.asc>


More information about the Mercurial mailing list