Rebase Permissions
Matt Mackall
mpm at selenic.com
Tue Nov 3 12:54:52 CST 2009
On Tue, 2009-11-03 at 10:51 -0800, Stephen Rasku wrote:
> On Tue, Nov 3, 2009 at 10:42, Matt Mackall <mpm at selenic.com> wrote:
> > On Tue, 2009-11-03 at 09:29 -0800, Stephen Rasku wrote:
> >> Here's the traceback:
> > ...
> >> self.wopener(filename, 'w').write(data)
> >> File "/usr/lib64/python2.4/site-packages/mercurial/util.py", line
> >> 876, in __call__
> >> fp = posixfile(f, mode)
> >
> > Hmm, posixfile here is simply open() and mode is simply 'w'.
> >
> >> IOError: [Errno 13] Permission denied:
> >> '/var/cvshg/INC/TUNet-0002/BASE_STATION/newmodule/Makefile'
> >> abort: Permission denied:
> >> /var/cvshg/INC/TUNet-0002/BASE_STATION/newmodule/Makefile
> >
> > You said the file was owned by hguser. Are you not hguser?
>
> No, I'm not hguser but I am a member of the group, hg, that hguser is
> a member of.
>
> ...Stephen
Ok. Mercurial calculates the umask to use from the permissions of .hg/.
This means that if a user manages to create a repo with sensible
permissions, it continues to work. Sounds like the permissions on .hg
are not set to your liking.
--
http://selenic.com : development and support for Mercurial and Linux
More information about the Mercurial
mailing list