Proposal: inherit group

Isaac Jurado diptongo at gmail.com
Thu Oct 11 04:18:08 CDT 2012


On Thu, Oct 11, 2012 at 10:50 AM, Pierre-Yves David
<pierre-yves.david at logilab.fr> wrote:
> On Wed, Oct 10, 2012 at 08:57:29PM -0500, Matt Mackall wrote:
>> Currently, Mercurial inherits file permission bits from .hg/store. This
>> lets newly-created files in a repo on a shared filesystem get
>> group-compatible permissions regardless of the current umask of the
>> user.
>>
>> Unfortunately, the group attached to the file will not automatically be
>> a useful one unless all the directories in .hg/store are also carefully
>> marked g+s so that newly-created files and directories get shared with
>> the appropriate group. This, being a bit outside Unix Permissions 101,
>> is apparently not something most people know how to do.
>>
>> So it might significantly ease things if we tried to automatically copy
>> the group from the .hg/store directory to newly created files and
>> directories in the store.
>
> +1 on that. I've never seen a shared repo without this g+s bit.
> (except broken one)

Although being neutral about this, I think requiring the g+s bit also
serves as an explicit indicator of a shared repo.  Lifting this
requirement could be confusing or even a security problem (when using
careless umasks).

Just my two cents.  Regards.

-- 
Isaac Jurado

"The noblest pleasure is the joy of understanding"
Leonardo da Vinci


More information about the Mercurial-devel mailing list