error on "ok" for setting change

Issue #3313 resolved
Anonymous created an issue

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/", line 1174, in accept
  File "/usr/lib/python2.7/dist-packages/tortoisehg/hgqt/", line 1152, in applyChanges
  File "/usr/lib/python2.7/dist-packages/tortoisehg/hgqt/", line 1567, in applyChanges
    wconfig.writefile(self.ini, self.fn)
  File "/usr/lib/python2.7/dist-packages/tortoisehg/util/", line 246, in writefile
    f = util.atomictempfile(os.path.realpath(path), 'w')
  File "/usr/lib/python2.7/dist-packages/mercurial/", line 850, in __init__
  File "/usr/lib/python2.7/dist-packages/mercurial/", line 815, in mktempcopy
    copymode(name, temp, createmode)
  File "/usr/lib/python2.7/dist-packages/mercurial/", 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)

  1. Yuya Nishihara

    Probably chmod fails because /media is vfat, but can't reproduce on my machine with the default mount option.

    % uname -a
    Linux gimlet 3.10-2-amd64 #1 SMP Debian 3.10.5-1 (2013-08-07) x86_64 GNU/Linux
    % mount | grep vfat
    /tmp/vfat.img on /mnt type vfat (rw,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=utf8,shortname=mixed,errors=remount-ro)


  2. ozmadar

    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

  3. ozmadar

    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.

  4. Yuya Nishihara

    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.

  5. Log in to comment