[issue1284] hg mv fails ungracefully when running out of disk space

Thomas Mangin mercurial-bugs at selenic.com
Mon Sep 1 11:01:36 CDT 2008


New submission from Thomas Mangin <thomas.mangin at free.fr>:

Running out of disk space within a hg mv does not fail gracely.
As far as I can say the repo was not corrupted (just had to finish the move by
hand once the space was freed on the drive).

As mercurial says it should be reported, here it is :)

This happened on Ubuntu 8.04.

voip-master:~/control# hg mv sems/audio/ .
copying sems/audio/401.wav to audio/401.wav
copying sems/audio/402.wav to audio/402.wav
copying sems/audio/403.wav to audio/403.wav
copying sems/audio/405.wav to audio/405.wav
copying sems/audio/406.wav to audio/406.wav
copying sems/audio/408.wav to audio/408.wav
copying sems/audio/410.wav to audio/410.wav
copying sems/audio/account-disabled-external.wav to
audio/account-disabled-external.wav
copying sems/audio/account-disabled-internal.wav to
audio/account-disabled-internal.wav
copying sems/audio/not-done.wav to audio/not-done.wav
copying sems/audio/phone-unallocated.wav to audio/phone-unallocated.wav
copying sems/audio/proxy-for-local-user-only.wav to
audio/proxy-for-local-user-only.wav
copying sems/audio/proxy-no-outbound-allowed.wav to
audio/proxy-no-outbound-allowed.wav
copying sems/audio/proxy-no-such-destination.wav to
audio/proxy-no-such-destination.wav
sems/audio/proxy-not-for-us.wav: cannot copy - No space left on device
** unknown exception encountered, details follow
** report bug details to http://www.selenic.com/mercurial/bts
** or mercurial at selenic.com
** Mercurial Distributed SCM (version 0.9.1)
Traceback (most recent call last):
  File "/usr/bin/hg", line 12, in ?
    commands.run()
  File "/var/lib/python-support/python2.4/mercurial/commands.py", line 3266, in run
    sys.exit(dispatch(sys.argv[1:]))
  File "/var/lib/python-support/python2.4/mercurial/commands.py", line 3465, in
dispatch
    return d()
  File "/var/lib/python-support/python2.4/mercurial/commands.py", line 3424, in
<lambda>
    d = lambda: func(u, repo, *args, **cmdoptions)
  File "/var/lib/python-support/python2.4/mercurial/commands.py", line 2349, in
rename
    errs, copied = docopy(ui, repo, pats, opts, wlock)
  File "/var/lib/python-support/python2.4/mercurial/commands.py", line 1180, in
docopy
    copy(origsrc, abssrc, relsrc, targetpath(abssrc), exact)
  File "/var/lib/python-support/python2.4/mercurial/commands.py", line 1089, in copy
    errors += 1
UnboundLocalError: local variable 'errors' referenced before assignment

voip-master:~/control# hg version
Mercurial Distributed SCM (version 0.9.1)

Copyright (C) 2005 Matt Mackall <mpm at selenic.com>
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

----------
messages: 6900
nosy: thomasmangin
priority: bug
status: unread
title: hg mv fails ungracefully when running out of disk space

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue1284>
____________________________________________________



More information about the Mercurial-devel mailing list