[issue1337] hg update on USB stick (vfat) fails: IOError: invalid mode: wb
Arne Babenhauserheide
mercurial-bugs at selenic.com
Sun Oct 12 16:18:08 UTC 2008
New submission from Arne Babenhauserheide <arne_bab at web.de>:
Hi,
In one of my repositories updating on a usb stick fails with the following error
message:
$ hg up -v
Not trusting file /media/sdd1/ews/RaumZeit/welt/.hg/hgrc from untrusted user
ivman, group plugdev
Not trusting file /media/sdd1/ews/RaumZeit/welt/.hg/hgrc from untrusted user
ivman, group plugdev
resolving manifests
getting Antriebe im �berblick.odt
Traceback (most recent call last):
File "/usr/bin/hg", line 20, in <module>
mercurial.dispatch.run()
File "/usr/lib64/python2.5/site-packages/mercurial/dispatch.py", line 20, in
run
sys.exit(dispatch(sys.argv[1:]))
File "/usr/lib64/python2.5/site-packages/mercurial/dispatch.py", line 29, in
dispatch
return _runcatch(u, args)
File "/usr/lib64/python2.5/site-packages/mercurial/dispatch.py", line 45, in
_runcatch
return _dispatch(ui, args)
File "/usr/lib64/python2.5/site-packages/mercurial/dispatch.py", line 364, in
_dispatch
ret = _runcommand(ui, options, cmd, d)
File "/usr/lib64/python2.5/site-packages/mercurial/dispatch.py", line 417, in
_runcommand
return checkargs()
File "/usr/lib64/python2.5/site-packages/mercurial/dispatch.py", line 373, in
checkargs
return cmdfunc()
File "/usr/lib64/python2.5/site-packages/mercurial/dispatch.py", line 356, in
<lambda>
d = lambda: func(ui, repo, *args, **cmdoptions)
File "/usr/lib64/python2.5/site-packages/mercurial/commands.py", line 2800, in
update
return hg.update(repo, rev)
File "/usr/lib64/python2.5/site-packages/mercurial/hg.py", line 271, in update
stats = _merge.update(repo, node, False, False, None)
File "/usr/lib64/python2.5/site-packages/mercurial/merge.py", line 402, in
update
stats = applyupdates(repo, action, wc, p2)
File "/usr/lib64/python2.5/site-packages/mercurial/merge.py", line 248, in
applyupdates
repo.wwrite(f, t, flags)
File "/usr/lib64/python2.5/site-packages/mercurial/localrepo.py", line 565, in
wwrite
self.wopener(filename, 'w').write(data)
File "/usr/lib64/python2.5/site-packages/mercurial/util.py", line 1442, in
__call__
fp = posixfile(f, mode)
IOError: invalid mode: wb
return cmdfunc()
File "/usr/lib64/python2.5/site-packages/mercurial/dispatch.py", line 356, in
<lambda>
d = lambda: func(ui, repo, *args, **cmdoptions)
File "/usr/lib64/python2.5/site-packages/mercurial/commands.py", line 2800, in
update
return hg.update(repo, rev)
File "/usr/lib64/python2.5/site-packages/mercurial/hg.py", line 271, in update
stats = _merge.update(repo, node, False, False, None)
File "/usr/lib64/python2.5/site-packages/mercurial/merge.py", line 402, in
update
stats = applyupdates(repo, action, wc, p2)
File "/usr/lib64/python2.5/site-packages/mercurial/merge.py", line 248, in
applyupdates
repo.wwrite(f, t, flags)
File "/usr/lib64/python2.5/site-packages/mercurial/localrepo.py", line 565, in
wwrite
self.wopener(filename, 'w').write(data)
File "/usr/lib64/python2.5/site-packages/mercurial/util.py", line 1442, in
__call__
fp = posixfile(f, mode)
IOError: invalid mode: wb
The � is a german umlaut (ü) and the file is an open office text file (binary).
The repository in question is public:
http://freehg.org/u/ArneBab/raumzeit
----------
messages: 7408
nosy: ArneBab
priority: bug
status: unread
title: hg update on USB stick (vfat) fails: IOError: invalid mode: wb
topic: update
____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue1337>
____________________________________________________
More information about the Mercurial-devel
mailing list