error on "ok" for setting change
I change the user for a specific repository and it crashed
** Mercurial version (2.6.3). TortoiseHg version (2.8) ** Command: --nofork ** CWD: /home/ozma ** Encoding: UTF-8 ** Extensions loaded: ** Python version: 2.7.5+ (default, Jun 2 2013, 13:26:34) [GCC 4.7.3] ** System: Linux debian 3.9-1-amd64 #1 SMP Debian 3.9.8-1 x86_64 ** Qt-4.8.4 PyQt-4.10.2 QScintilla-2.7.2 Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/tortoisehg/hgqt/settings.py", line 1174, in accept self.applyChanges() File "/usr/lib/python2.7/dist-packages/tortoisehg/hgqt/settings.py", line 1152, in applyChanges self.conftabs.widget(i).applyChanges() File "/usr/lib/python2.7/dist-packages/tortoisehg/hgqt/settings.py", line 1567, in applyChanges wconfig.writefile(self.ini, self.fn) File "/usr/lib/python2.7/dist-packages/tortoisehg/util/wconfig.py", line 246, in writefile f = util.atomictempfile(os.path.realpath(path), 'w') File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 850, in __init__ createmode=createmode) File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 815, in mktempcopy copymode(name, temp, createmode) File "/usr/lib/python2.7/dist-packages/mercurial/posix.py", line 122, in copymode os.chmod(dst, st_mode) OSError: [Errno 1] Operation not permitted: '/media/Data/workspace/workspacesALL/eclipseLinux/web_proj/.hg/.hgrc-W4FAdy'
Comments (8)
-
-
the chmod failed but it shouldn't matter if all permissions are granted anyway. these are the permissions on my machine but it failes: "-rwxrwxrwx 1 root sudo 0 ...hgrc-W4FAdy".
I think it should give a warning
-
-rwxrwxrwx 1 root sudo 0 ...hgrc-W4FAdy
chmod
fails because the file is not owned by you. What mechanism do you use to mount the flash drive? -
- changed status to resolved
settings: catch OSError to show warning dialog (closes
#3313)→ <<cset d8c03addb66d>>
-
it is mounted in /etc/fstab:
"/dev/sda3 /media/Data ntfs-3g rw,user,sgid,suid,exec,auto,utf8,gid=27 0 1 "
chmod is not necessary because all permissions are granted anyway.
-
It copies permission bits from the original file, which should succeed on a decent filesystem.
"/dev/sda3 /media/Data ntfs-3g rw,user,sgid,suid,exec,auto,utf8,gid=27 0 1 "
use
uid=
or user mapping, or switch to ext3. -
Issue
#3675was marked as a duplicate of this issue. -
Issue
#1180was marked as a duplicate of this issue. - Log in to comment
Probably
chmod
fails because /media is vfat, but can't reproduce on my machine with the default mount option.Related: http://bz.selenic.com/show_bug.cgi?id=1172