Issue #401 new

trying to open a deleted file and/or module.__init__() takes at most 2 arguments (3 given)

Patrick Plenefisch
created an issue

I have a svn repo and was doing a hg pull and suddenly this came up on one of the revision imports

** Unknown exception encountered with possibly-broken third-party extension hgsubversion
** which supports versions unknown of Mercurial.
** Please disable hgsubversion and try your action again.
** If that fixes the bug please report it to the extension author.
** Python 2.7.3 (default, Apr 10 2013, 05:46:21) [GCC 4.6.3]
** Mercurial Distributed SCM (version 2.6.1)
** Extensions loaded: mq, hgsubversion, progress, rebase, largefiles, color, histedit, inotify, transplant
Traceback (most recent call last):
  File "/usr/bin/hg", line 38, in <module>
    mercurial.dispatch.run()
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 28, in run
    sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 65, in dispatch
    return _runcatch(req)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 88, in _runcatch
    return _dispatch(req)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 771, in _dispatch
    cmdpats, cmdoptions)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 540, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/usr/lib/python2.7/dist-packages/mercurial/extensions.py", line 188, in wrap
    return wrapper(origfn, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/hgext/color.py", line 405, in colorcmd
    return orig(ui_, opts, cmd, cmdfunc)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 866, in _runcommand
    return checkargs()
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 837, in checkargs
    return cmdfunc()
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 766, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 506, in check
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mercurial/extensions.py", line 143, in wrap
    util.checksignature(origfn), *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 506, in check
    return func(*args, **kwargs)
  File "/opt/hgsubversion/hgsubversion/wrappers.py", line 625, in generic
    return orig(ui, repo, *args, **opts)
  File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 506, in check
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mercurial/extensions.py", line 143, in wrap
    util.checksignature(origfn), *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 506, in check
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/hgext/mq.py", line 3528, in mqcommand
    return orig(ui, repo, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 506, in check
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mercurial/extensions.py", line 143, in wrap
    util.checksignature(origfn), *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 506, in check
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/hgext/largefiles/overrides.py", line 733, in overridepull
    result = orig(ui, repo, source, **opts)
  File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 506, in check
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mercurial/extensions.py", line 143, in wrap
    util.checksignature(origfn), *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 506, in check
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/hgext/rebase.py", line 780, in pullrebase
    orig(ui, repo, *args, **opts)
  File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 506, in check
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mercurial/commands.py", line 4546, in pull
    modheads = repo.pull(other, heads=revs, force=opts.get('force'))
  File "/opt/hgsubversion/hgsubversion/svnrepo.py", line 81, in wrapper
    return fn(self, *args, **opts)
  File "/opt/hgsubversion/hgsubversion/svnrepo.py", line 104, in pull
    return wrappers.pull(self, remote, heads, force)
  File "/opt/hgsubversion/hgsubversion/wrappers.py", line 436, in pull
    firstrun)
  File "/opt/hgsubversion/hgsubversion/replay.py", line 66, in convert_rev
    return _convert_rev(ui, meta, svn, r, tbdelta, firstrun)
  File "/opt/hgsubversion/hgsubversion/replay.py", line 83, in _convert_rev
    svn.get_replay(r.revnum, editor, meta.revmap.oldest)
  File "/opt/hgsubversion/hgsubversion/svnwrap/subvertpy_wrapper.py", line 469, in get_replay
    self.remote.replay(revision, oldestrev, BaseEditor(editor))
  File "/opt/hgsubversion/hgsubversion/svnwrap/subvertpy_wrapper.py", line 155, in open_file
    baton = self.editor.open_file(path, self.baton, base_revnum)
  File "/opt/hgsubversion/hgsubversion/editor.py", line 325, in open_file
    return self._openfile(path, base, 'x' in flags, 'l' in flags, None)
  File "/opt/hgsubversion/hgsubversion/editor.py", line 204, in _openfile
    raise EditingError('trying to open a deleted file %s' % path)
hgext_hgsubversion.editor.EditingError: trying to open a deleted file trunk/OutlineViewer/build.xml
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/apport_python_hook.py", line 66, in apport_excepthook
    from apport.fileutils import likely_packaged, get_recent_crashes
  File "/usr/lib/python2.7/dist-packages/mercurial/demandimport.py", line 95, in _demandimport
    return _import(name, globals, locals, fromlist, level)
  File "/usr/lib/python2.7/dist-packages/apport/__init__.py", line 1, in <module>
    from apport.report import Report
  File "/usr/lib/python2.7/dist-packages/mercurial/demandimport.py", line 114, in _demandimport
    mod = _origimport(name, globals, locals)
  File "/usr/lib/python2.7/dist-packages/apport/report.py", line 155, in <module>
    class Report(problem_report.ProblemReport):
  File "/usr/lib/python2.7/dist-packages/mercurial/demandimport.py", line 86, in __getattribute__
    self._load()
  File "/usr/lib/python2.7/dist-packages/mercurial/demandimport.py", line 58, in _load
    mod = _origimport(head, globals, locals)
  File "/usr/lib/python2.7/dist-packages/problem_report.py", line 93, in <module>
    class ProblemReport(UserDict):
TypeError: Error when calling the metaclass bases
    module.__init__() takes at most 2 arguments (3 given)

Original exception was:
Traceback (most recent call last):
  File "/usr/bin/hg", line 38, in <module>
    mercurial.dispatch.run()
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 28, in run
    sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 65, in dispatch
    return _runcatch(req)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 88, in _runcatch
    return _dispatch(req)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 771, in _dispatch
    cmdpats, cmdoptions)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 540, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/usr/lib/python2.7/dist-packages/mercurial/extensions.py", line 188, in wrap
    return wrapper(origfn, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/hgext/color.py", line 405, in colorcmd
    return orig(ui_, opts, cmd, cmdfunc)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 866, in _runcommand
    return checkargs()
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 837, in checkargs
    return cmdfunc()
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 766, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 506, in check
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mercurial/extensions.py", line 143, in wrap
    util.checksignature(origfn), *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 506, in check
    return func(*args, **kwargs)
  File "/opt/hgsubversion/hgsubversion/wrappers.py", line 625, in generic
    return orig(ui, repo, *args, **opts)
  File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 506, in check
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mercurial/extensions.py", line 143, in wrap
    util.checksignature(origfn), *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 506, in check
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/hgext/mq.py", line 3528, in mqcommand
    return orig(ui, repo, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 506, in check
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mercurial/extensions.py", line 143, in wrap
    util.checksignature(origfn), *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 506, in check
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/hgext/largefiles/overrides.py", line 733, in overridepull
    result = orig(ui, repo, source, **opts)
  File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 506, in check
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mercurial/extensions.py", line 143, in wrap
    util.checksignature(origfn), *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 506, in check
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/hgext/rebase.py", line 780, in pullrebase
    orig(ui, repo, *args, **opts)
  File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 506, in check
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mercurial/commands.py", line 4546, in pull
    modheads = repo.pull(other, heads=revs, force=opts.get('force'))
  File "/opt/hgsubversion/hgsubversion/svnrepo.py", line 81, in wrapper
    return fn(self, *args, **opts)
  File "/opt/hgsubversion/hgsubversion/svnrepo.py", line 104, in pull
    return wrappers.pull(self, remote, heads, force)
  File "/opt/hgsubversion/hgsubversion/wrappers.py", line 436, in pull
    firstrun)
  File "/opt/hgsubversion/hgsubversion/replay.py", line 66, in convert_rev
    return _convert_rev(ui, meta, svn, r, tbdelta, firstrun)
  File "/opt/hgsubversion/hgsubversion/replay.py", line 83, in _convert_rev
    svn.get_replay(r.revnum, editor, meta.revmap.oldest)
  File "/opt/hgsubversion/hgsubversion/svnwrap/subvertpy_wrapper.py", line 469, in get_replay
    self.remote.replay(revision, oldestrev, BaseEditor(editor))
  File "/opt/hgsubversion/hgsubversion/svnwrap/subvertpy_wrapper.py", line 155, in open_file
    baton = self.editor.open_file(path, self.baton, base_revnum)
  File "/opt/hgsubversion/hgsubversion/editor.py", line 325, in open_file
    return self._openfile(path, base, 'x' in flags, 'l' in flags, None)
  File "/opt/hgsubversion/hgsubversion/editor.py", line 204, in _openfile
    raise EditingError('trying to open a deleted file %s' % path)
hgext_hgsubversion.editor.EditingError: trying to open a deleted file trunk/OutlineViewer/build.xml

Comments (4)

  1. Augie Fackler repo owner

    File "/opt/hgsubversion/hgsubversion/editor.py", line 204, in _openfile raise EditingError('trying to open a deleted file %s' % path) hgext_hgsubversion.editor.EditingError: trying to open a deleted file trunk/OutlineViewer/build.xml

    Is the real error here. You've got some weird ubuntu shenanigans that's the cause of the first exception.

    Without a sample history, we're not going to be much help. Is this by any chance an open-source repo?

  2. Patrick Plenefisch reporter

    The issue I have is with [r401] djur: Fixed a bug when adding values would freeze/hang/break the Outline. Adding arrays still needs to be finished, so the dialog for it is pu

  3. Log in to comment