[issue1838] convert: EOFError traceback when hg executable is not found

Nicolas Dumazet bugs at mercurial.selenic.com
Mon Sep 21 17:12:33 UTC 2009


New submission from Nicolas Dumazet <nicdumz at gmail.com>:

On crew.

mercurial/crew/hg convert source dest
initializing destination dest repository
/bin/sh: hg: not found
** unknown exception encountered, details follow
** report bug details to http://mercurial.selenic.com/bts/
** or mercurial at selenic.com
** Mercurial Distributed SCM (version bccf780f78ed)
** Extensions loaded: graphlog, mq, patchbomb, color, churn, perf, convert,
hgsubversion
Traceback (most recent call last):
  File "hg", line 27, in <module>
    mercurial.dispatch.run()
  File "mercurial/dispatch.py", line 16, in run
    sys.exit(dispatch(sys.argv[1:]))
  File "mercurial/dispatch.py", line 30, in dispatch
    return _runcatch(u, args)
  File "mercurial/dispatch.py", line 46, in _runcatch
    return _dispatch(ui, args)
  File "mercurial/dispatch.py", line 460, in _dispatch
    return runcommand(lui, repo, cmd, fullargs, ui, options, d)
  File "mercurial/dispatch.py", line 320, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "mercurial/dispatch.py", line 512, in _runcommand
    return checkargs()
  File "mercurial/dispatch.py", line 465, in checkargs
    return cmdfunc()
  File "mercurial/dispatch.py", line 459, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "mercurial/util.py", line 400, in check
    return func(*args, **kwargs)
  File "hgext/convert/__init__.py", line 240, in convert
    return convcmd.convert(ui, src, dest, revmapfile, **opts)
  File "hgext/convert/convcmd.py", line 372, in convert
    opts.get('rev'))
  File "hgext/convert/convcmd.py", line 54, in convertsource
    return source(ui, path, rev), sortmode
  File "hgext/convert/subversion.py", line 251, in __init__
    self.head = self.latest(self.module, latest)
  File "hgext/convert/subversion.py", line 553, in latest
    for entry in stream:
  File "hgext/convert/subversion.py", line 117, in __iter__
    entry = pickle.load(self._stdout)
EOFError

We should not focus on the fact that sh does not find my executable. It's a
local problem. 
But I think that it can happen to others, too, and that this EOFError should
be caught more gracefully.

----------
messages: 10535
nosy: nicdumz
priority: bug
status: unread
title: convert: EOFError traceback when hg executable is not found
topic: convert

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



More information about the Mercurial-devel mailing list