Interrupted system call during "hg convert"

Posted by Aaron Digulla on Super User See other posts from Super User or by Aaron Digulla
Published on 2010-05-17T07:37:21Z Indexed on 2010/05/17 7:40 UTC
Read the original article Hit count: 406

Filed under:
|
|
|

When I run "hg convert" to convert a Subversion repository to Mercurial, I get this error:

fetching revision log for "/trunk" from 1538 to 0
run hg sink post-conversion action
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/mercurial/dispatch.py", line 46, in _runcatch
    return _dispatch(ui, args)
  File "/usr/lib/pymodules/python2.6/mercurial/dispatch.py", line 454, in _dispatch
    return runcommand(lui, repo, cmd, fullargs, ui, options, d)
  File "/usr/lib/pymodules/python2.6/mercurial/dispatch.py", line 324, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/usr/lib/pymodules/python2.6/mercurial/dispatch.py", line 505, in _runcommand
    return checkargs()
  File "/usr/lib/pymodules/python2.6/mercurial/dispatch.py", line 459, in checkargs
    return cmdfunc()
  File "/usr/lib/pymodules/python2.6/mercurial/dispatch.py", line 453, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/usr/lib/pymodules/python2.6/mercurial/util.py", line 386, in check
    return func(*args, **kwargs)
  File "/usr/lib/pymodules/python2.6/hgext/convert/__init__.py", line 229, in convert
    return convcmd.convert(ui, src, dest, revmapfile, **opts)
  File "/usr/lib/pymodules/python2.6/hgext/convert/convcmd.py", line 398, in convert
    c.convert(sortmode)
  File "/usr/lib/pymodules/python2.6/hgext/convert/convcmd.py", line 312, in convert
    parents = self.walktree(heads)
  File "/usr/lib/pymodules/python2.6/hgext/convert/convcmd.py", line 109, in walktree
    commit = self.cachecommit(n)
  File "/usr/lib/pymodules/python2.6/hgext/convert/convcmd.py", line 267, in cachecommit
    commit = self.source.getcommit(rev)
  File "/usr/lib/pymodules/python2.6/hgext/convert/subversion.py", line 433, in getcommit
    self._fetch_revisions(revnum, stop)
  File "/usr/lib/pymodules/python2.6/hgext/convert/subversion.py", line 814, in _fetch_revisions
    for entry in stream:
  File "/usr/lib/pymodules/python2.6/hgext/convert/subversion.py", line 122, in __iter__
    entry = pickle.load(self._stdout)
IOError: [Errno 4] Interrupted system call
abort: Interrupted system call

Apparently, it is possible to restart a read on EINTR but how would I do that with pickle.load()? Also I wonder where that signal comes from? I suspect it's SIGCHILD but shouldn't popen() handle that?

© Super User or respective owner

Related posts about mercurial

Related posts about convert