Rebase Permissions
Stephen Rasku
mercurial at srasku.net
Tue Nov 3 11:29:32 CST 2009
Here's the traceback:
$ hg pull --reb --traceback
pulling from /var/hg/TUNet-0002
searching for changes
adding changesets
adding manifests
adding file changes
added 4 changesets with 16 changes to 16 files
(run 'hg update' to get a working copy)
Traceback (most recent call last):
File "/usr/lib64/python2.4/site-packages/mercurial/dispatch.py",
line 43, in _runcatch
return _dispatch(ui, args)
File "/usr/lib64/python2.4/site-packages/mercurial/dispatch.py",
line 449, in _dispatch
return runcommand(lui, repo, cmd, fullargs, ui, options, d)
File "/usr/lib64/python2.4/site-packages/mercurial/dispatch.py",
line 317, in runcommand
ret = _runcommand(ui, options, cmd, d)
File "/usr/lib64/python2.4/site-packages/mercurial/dispatch.py",
line 501, in _runcommand
return checkargs()
File "/usr/lib64/python2.4/site-packages/mercurial/dispatch.py",
line 454, in checkargs
return cmdfunc()
File "/usr/lib64/python2.4/site-packages/mercurial/dispatch.py",
line 448, in <lambda>
d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
File "/usr/lib64/python2.4/site-packages/mercurial/util.py", line
402, in check
return func(*args, **kwargs)
File "/usr/lib64/python2.4/site-packages/mercurial/extensions.py",
line 102, in wrap
return util.checksignature(wrapper)(
File "/usr/lib64/python2.4/site-packages/mercurial/util.py", line
402, in check
return func(*args, **kwargs)
File "/usr/lib64/python2.4/site-packages/hgext/rebase.py", line 440,
in pullrebase
rebase(ui, repo, **opts)
File "/usr/lib64/python2.4/site-packages/hgext/rebase.py", line 118,
in rebase collapsef, extrafn)
File "/usr/lib64/python2.4/site-packages/hgext/rebase.py", line 202,
in rebasenode
merge.update(repo, p1, False, True, False)
File "/usr/lib64/python2.4/site-packages/mercurial/merge.py", line
468, in update
stats = applyupdates(repo, action, wc, p2)
File "/usr/lib64/python2.4/site-packages/mercurial/merge.py", line
306, in applyupdates
repo.wwrite(f, t, flags)
File "/usr/lib64/python2.4/site-packages/mercurial/localrepo.py",
line 605, in wwrite
self.wopener(filename, 'w').write(data)
File "/usr/lib64/python2.4/site-packages/mercurial/util.py", line
876, in __call__
fp = posixfile(f, mode)
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
On Mon, Nov 2, 2009 at 17:23, chadrik <chadrik at gmail.com> wrote:
> can you run that with the --traceback flag on? i'm curious if this has to
> do with the issues i had with util.copyfile, which attempts to change file
> timestamps despite the fact that it is rarely necessary and impossible to do
> on a file you don't own.
>
> -chad
>
>
> On Nov 2, 2009, at 2:27 PM, Stephen Rasku wrote:
>
>> I am trying to rebase a repository that I didn't create but which I
>> have group write permission on:
>>
>> $ ls -l .
>> total 40
>> drwxrwxr-x 114 hguser hg 4096 Nov 2 14:17 Dir1/
>> drwxrwxr-x 7 hguser hg 4096 Sep 10 15:43 Dir2/
>> drwxrwxr-x 2 hguser hg 4096 Oct 15 07:58 INC/
>> drwxrwxr-x 2 hguser hg 4096 Sep 10 15:43 psftp/
>> drwxrwxr-x 11 hguser hg 4096 Sep 10 15:43 www/
>>
>> When I try and rebase it, I get the following error:
>>
>> $ hg pull --reb
>> pulling from /var/hg/blah
>> searching for changes
>> adding changesets
>> adding manifests
>> adding file changes
>> added 159 changesets with 411 changes to 171 files (+1 heads)
>> (run 'hg heads' to see heads, 'hg merge' to merge)
>> abort: Permission denied: /.../Dir1/newmodule/Makefile
>>
>> This module doesn't exist in the repository prior to rebasing. Why
>> would Mercurial create a file with permissions that the user running
>> the command can't use?
>>
>> This is for version 1.3.1 on Linux.
>>
>> ...Stephen
>> _______________________________________________
>> Mercurial mailing list
>> Mercurial at selenic.com
>> http://selenic.com/mailman/listinfo/mercurial
>
>
More information about the Mercurial
mailing list