1

I try to clone my repo from SL OSX & Win2003, and get this error:

added 274 changesets with 975 changes to 264 files
updating the branch cache
Traceback (most recent call last):
  File "mercurial\dispatch.pyo", line 58, in _runcatch
  File "mercurial\dispatch.pyo", line 590, in _dispatch
  File "mercurial\dispatch.pyo", line 401, in runcommand
  File "mercurial\dispatch.pyo", line 641, in _runcommand
  File "mercurial\dispatch.pyo", line 595, in checkargs
  File "mercurial\dispatch.pyo", line 588, in <lambda>
  File "mercurial\util.pyo", line 427, in check
  File "mercurial\commands.pyo", line 736, in clone
  File "mercurial\hg.pyo", line 337, in clone
  File "mercurial\localrepo.pyo", line 1885, in clone
  File "hgext\bookmarks.pyo", line 303, in pull
  File "mercurial\localrepo.pyo", line 1294, in pull
  File "hgext\bookmarks.pyo", line 353, in addchangegroup
  File "mercurial\localrepo.pyo", line 1791, in addchangegroup
  File "mercurial\localrepo.pyo", line 208, in hook
  File "mercurial\hook.pyo", line 138, in hook
  File "mercurial\extensions.pyo", line 40, in loadpath
IOError: [Errno 2] No such file or directory
abort: No such file or directory
flag

1 Answer

2

I finally discover the reason. I have a not existant hook in the mercurial global config.

I discover the issue running the debugger:

hg clone THEREPO -v --traceback  --debugger

This start pdb. When the exception happends, I list the locals args with

gdb>a

Full info of debugging with gdb: http://docs.python.org/library/pdb.html

link|flag
Thanks for posting the solution! – Rob Sobers Jan 4 2011 at 15:02

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.