[PATCH] umask support for `hg serve`

Gé Weijers ge at weijers.org
Mon Dec 19 03:21:43 UTC 2005


On Dec 16, 2005, at 12:01 AM, Matt Mackall wrote:

> [catching up on my backlog]
>
> On Sun, Nov 27, 2005 at 06:02:34PM -0800, Andy Smith wrote:
>> Quick patch to allow `hg serve` to run with a umask specified in  
>> the config.
>>
>> Adds a couple lines of code at the top of the serve command to put it
>> into a umask if one has been defined. Also added a small doc blurb  
>> for it.
>>
>> The config section I put the option in is web, although I am not  
>> fully
>> certain that is the best place for it.
>
> What's this useful for? When does 'hg serve' create files?

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 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.

In the more general case: it would be useful to set the umask even if  
the target repository of the 'push' is on a local file system.

Gé

>
> -- 
> Mathematics is the supreme nostalgia of our time.
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial
>
>

--
Gé Weijers
e-mail: ge at weijers.org






More information about the Mercurial mailing list