temp directory.

Adrian Buehlmann adrian at cadifra.com
Thu Nov 18 03:40:19 CST 2010


On 2010-11-18 09:49, Paolo Minazzi wrote:
>> Send us a traceback from hg diff --traceback.
> 
> Thanks to all for help.
> 
> Before show the command a think it is better do a precisation.
> My mercurial 0.9.4 binary is in my home directory (/home/paolo) and
> compiled as local (make local).

Any reason why you use such an ancient version?

0.9.4 was released on 2007-06-25

> my_pen # mount -o remount,ro /my_pen
> 
> my_pen # /home/paolo/mercurial-0.9.4/hg diff
> abort: Read-only file system: /colinux64/colinux64/src/nKdE24
> 
> my_pen # /home/paolo/mercurial-0.9.4/hg diff --traceback
> Traceback (most recent call last):
>   File "mercurial/cmdutil.py", line 37, in runcatch
>   File "mercurial/cmdutil.py", line 364, in dispatch
>   File "mercurial/cmdutil.py", line 417, in runcommand
>   File "mercurial/cmdutil.py", line 373, in checkargs
>   File "mercurial/cmdutil.py", line 356, in <lambda>
>   File "mercurial/commands.py", line 1022, in diff
>   File "mercurial/patch.py", line 502, in diff
>   File "/home/paolo/mercurial-0.9.4/mercurial/util.py", line 802, in execfunc
>     if checkexec(path):
>   File "/home/paolo/mercurial-0.9.4/mercurial/util.py", line 792, in checkexec
>     fh, fn = tempfile.mkstemp("", "", path)
>   File "/usr/lib/python2.4/tempfile.py", line 302, in mkstemp
>     return _mkstemp_inner(dir, prefix, suffix, flags)
>   File "/usr/lib/python2.4/tempfile.py", line 236, in _mkstemp_inner
>     fd = _os.open(file, flags, 0600)
> OSError: [Errno 30] Read-only file system: '/colinux64/colinux64/src/YwsRC1'
> abort: Read-only file system: /colinux64/colinux64/src/YwsRC1

I fail to reproduce this with Mercurial 1.7.1 on Windows 7 using a write
protected floppy in my floppy drive (yeah, I still have one :).

The only thing I get is a dialog box with title "hg.exe - Write Protect
Error" that suggest I should remove write protection from drive 'A:'
("The disk cannot be written to because it is write protected. Please
remove the write protection from the volume in drive A:") [1]. Clicking
"Cancel" or "Continue" (or the Windows close control) in that dialog
successfully completes 'hg diff' without any traceback ("Try Again" just
seems to do what it says :).

BTW, I only get this dialog if 'hg diff' produces non-empty output.

[1] http://bitbucket.org/abuehl/downloads/downloads/Write-Protect-Error1.PNG






More information about the Mercurial mailing list