Crash when trying to convert CouchDB

Issue #61 resolved
Dirkjan Ochtman
created an issue

{{{

!shell

djc@enrai hg $ hg svnclone http://svn.apache.org/repos/asf/couchdb Assuming destination couchdb-hg [r727050] jan: do not fail on heavily loaded systems. wait forever for syscalls [r727126] jchris: remove couch_ft_query [r727132] jchris: couch_os_process to manage the JSON line protocol. thanks davi unknown exception encountered, details follow report bug details to http://www.selenic.com/mercurial/bts or mercurial@selenic.com Mercurial Distributed SCM (version 25fc4c620e54) Extensions loaded: highlight, hgk, hgsubversion, mq, patchbomb, purge, (trimmed for brevity) Traceback (most recent call last): File "/usr/local/bin/hg", line 20, in <module> mercurial.dispatch.run() File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line 16, in run sys.exit(dispatch(sys.argv[1:])) File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line 25, in dispatch return _runcatch(u, args) File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line 41, in _runcatch return _dispatch(ui, args) File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line 364, in _dispatch ret = _runcommand(ui, options, cmd, d) File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line 413, in _runcommand return checkargs() File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line 373, in checkargs return cmdfunc() File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line 358, in <lambda> d = lambda: util.checksignature(func)(ui, *args, cmdoptions) File "/usr/lib/python2.5/site-packages/mercurial/util.py", line 718, in check return func(args, kwargs) File "/home/djc/src/hg/hgsubversion/init.py", line 61, in svn_fetch res = fetch_command.fetch_revisions(ui, svn_url, hg_repo_path, opts) File "/home/djc/src/hg/hgsubversion/fetch_command.py", line 87, in fetch_revisions replay_convert_rev(hg_editor, svn, r) File "/home/djc/src/hg/hgsubversion/fetch_command.py", line 120, in replay_convert_rev svn.get_replay(r.revnum, hg_editor) File "/home/djc/src/hg/hgsubversion/svnwrap/svn_swig_wrapper.py", line 386, in get_replay e_baton, self.pool) File "/usr/lib/svn-python/libsvn/ra.py", line 850, in svn_ra_replay File "/home/djc/src/hg/hgsubversion/hg_delta_editor.py", line 46, in fun return fn(self, args, **kwargs) File "/home/djc/src/hg/hgsubversion/hg_delta_editor.py", line 1004, in apply_textdelta or self.current_file in self.missing_plaintexts), '%s not found' % self.current_file AssertionError: couchdb/trunk/src/couchdb/couch_query_servers.erl not found

}}}

Comments (4)

  1. Anonymous

    I've got the same problem. I used hgsubversion for my work, and it works great.

    But today I got this error which dosen't happen before (Mercurial 1.2.1 + hgsubversion 1416429584b2):

    $ hg svnclone svn://my_svn_server/my_project
    [skip]
    ** unknown exception encountered, details follow
    ** report bug details to http://www.selenic.com/mercurial/bts
    ** or mercurial@selenic.com
    ** Mercurial Distributed SCM (version 1.2.1)
    ** Extensions loaded: color, fetch, graphlog, record, pager, rebase, svn, transplant
    Traceback (most recent call last):
      File "/usr/bin/hg", line 5, in <module>
        pkg_resources.run_script('mercurial==unknown', 'hg')
      File "/usr/lib/python2.5/site-packages/setuptools-0.6c8-py2.5.egg/pkg_resources.py", line 448, in run_script
      File "/usr/lib/python2.5/site-packages/setuptools-0.6c8-py2.5.egg/pkg_resources.py", line 1166, in run_script
      File "/usr/lib/python2.5/site-packages/mercurial-unknown-py2.5-linux-i686.egg/EGG-INFO/scripts/hg", line 27, in <module>
        mercurial.dispatch.run()
      File "/usr/lib/python2.5/site-packages/mercurial-unknown-py2.5-linux-i686.egg/mercurial/dispatch.py", line 16, in run
        sys.exit(dispatch(sys.argv[1:]))
      File "/usr/lib/python2.5/site-packages/mercurial-unknown-py2.5-linux-i686.egg/mercurial/dispatch.py", line 25, in dispatch
        return _runcatch(u, args)
      File "/usr/lib/python2.5/site-packages/mercurial-unknown-py2.5-linux-i686.egg/mercurial/dispatch.py", line 41, in _runcatch
        return _dispatch(ui, args)
      File "/usr/lib/python2.5/site-packages/mercurial-unknown-py2.5-linux-i686.egg/mercurial/dispatch.py", line 372, in _dispatch
        return runcommand(lui, repo, cmd, fullargs, ui, options, d)
      File "/usr/lib/python2.5/site-packages/mercurial-unknown-py2.5-linux-i686.egg/mercurial/dispatch.py", line 247, in runcommand
        ret = _runcommand(ui, options, cmd, d)
      File "/usr/lib/python2.5/site-packages/mercurial-unknown-py2.5-linux-i686.egg/mercurial/extensions.py", line 112, in wrap
        return wrapper(origfn, *args, **kwargs)
      File "/usr/lib/python2.5/site-packages/mercurial-unknown-py2.5-linux-i686.egg/hgext/pager.py", line 62, in pagecmd
        sys.exit(dispatch(sys.argv[1:]))
      File "/usr/lib/python2.5/site-packages/mercurial-unknown-py2.5-linux-i686.
    egg/mercurial/dispatch.py", line 25, in dispatch
        return _runcatch(u, args)
      File "/usr/lib/python2.5/site-packages/mercurial-unknown-py2.5-linux-i686.
    egg/mercurial/dispatch.py", line 41, in _runcatch
        return _dispatch(ui, args)
      File "/usr/lib/python2.5/site-packages/mercurial-unknown-py2.5-linux-i686.
    egg/mercurial/dispatch.py", line 372, in _dispatch
        return runcommand(lui, repo, cmd, fullargs, ui, options, d)
      File "/usr/lib/python2.5/site-packages/mercurial-unknown-py2.5-linux-i686.
    egg/mercurial/dispatch.py", line 247, in runcommand
        ret = _runcommand(ui, options, cmd, d)
      File "/usr/lib/python2.5/site-packages/mercurial-unknown-py2.5-linux-i686.
    egg/mercurial/extensions.py", line 112, in wrap
        return wrapper(origfn, *args, **kwargs)
      File "/usr/lib/python2.5/site-packages/mercurial-unknown-py2.5-linux-i686.
    egg/hgext/pager.py", line 62, in pagecmd
        return orig(ui, options, cmd, cmdfunc)
      File "/usr/lib/python2.5/site-packages/mercurial-unknown-py2.5-linux-i686.egg/mercurial/dispatch.py", line 417, in _runcommand
        return checkargs()
      File "/usr/lib/python2.5/site-packages/mercurial-unknown-py2.5-linux-i686.egg/mercurial/dispatch.py", line 377, in checkargs
        return cmdfunc()
      File "/usr/lib/python2.5/site-packages/mercurial-unknown-py2.5-linux-i686.egg/mercurial/dispatch.py", line 371, in <lambda>
        d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
      File "/usr/lib/python2.5/site-packages/mercurial-unknown-py2.5-linux-i686.egg/mercurial/util.py", line 718, in check
        return func(*args, **kwargs)
      File "/home/willie/mercurial/hgsubversion/__init__.py", line 61, in svn_fetch
        res = fetch_command.fetch_revisions(ui, svn_url, hg_repo_path, **opts)
      File "/home/willie/hgsubversion/fetch_command.py", line 87, in fetch_revisions
      File "/home/willie/hgsubversion/fetch_command.py", line 120, in replay_convert_rev
      File "/home/willie/hgsubversion/svnwrap/svn_swig_wrapper.py", line 386, in get_replay
      File "/var/lib/python-support/python2.5/libsvn/ra.py", line 850, in svn_ra_replay
        return apply(_ra.svn_ra_replay, args)
    svn.core.SubversionException: ("\xe6\x9c\xaa\xe7\x9f\xa5\xe7\x9a\x84\xe5\x91\xbd\xe4\xbb\xa4: 'failure'", 210001)
    
  2. Anton Kolev

    At me the exception is the same as first (Dirkjan):

    With -r 214, hg-1.2.1:

    hg svnclone http://fbug.googlecode.com/svn
    [r104] max.v.stepanov: made a copy
    [r105] max.v.stepanov: firebug service changes merged from explore branch and Ap
    ** unknown exception encountered, details follow
    ** report bug details to http://www.selenic.com/mercurial/bts
    ....
    ....
      File "c:/src/python/hgext\hgsubversion\hg_delta_editor.py", line 46, in fun
        return fn(self, *args, **kwargs)
      File "c:/src/python/hgext\hgsubversion\hg_delta_editor.py", line 1006, in apply_textdelta
        or self.current_file in self.missing_plaintexts), '%s not found' % self.current_file
    AssertionError: branches/firebug1.1/components/firebug-service.js not found
    

    But -r b81e7f2f7818 passes

  3. Augie Fackler repo owner

    The problem in the firebug repo is that they made the branch using a series of single-file copies, so hgsubversion gets initially confused by the way the firebug1.1 branch is created in revisions 90 through 105 - the initial copy wasn't made of trunk, so hgsubversion is (at best) guessing about the branch relationships. I'm going to discuss possible options with people at PyCon.

  4. Log in to comment