Issue #376 new

Exception while pushing

Oliver Janik
created an issue

I cloned SVN repository commited simple change and tried to push.

c:\test>hg push
pushing to svn://example.com/project
searching for changes
** 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 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)]
** Mercurial Distributed SCM (version 2.4.2)
** Extensions loaded: hgsubversion, rebase, mq
Traceback (most recent call last):
  File "hg", line 42, in <module>
  File "mercurial\dispatch.pyo", line 28, in run
  File "mercurial\dispatch.pyo", line 65, in dispatch
  File "mercurial\dispatch.pyo", line 88, in _runcatch
  File "mercurial\dispatch.pyo", line 741, in _dispatch
  File "mercurial\dispatch.pyo", line 514, in runcommand
  File "mercurial\dispatch.pyo", line 831, in _runcommand
  File "mercurial\dispatch.pyo", line 802, in checkargs
  File "mercurial\dispatch.pyo", line 738, in <lambda>
  File "mercurial\util.pyo", line 472, in check
  File "mercurial\extensions.pyo", line 144, in wrap
  File "mercurial\util.pyo", line 472, in check
  File "hgext\mq.pyo", line 3546, in mqcommand
  File "mercurial\util.pyo", line 472, in check
  File "mercurial\extensions.pyo", line 144, in wrap
  File "mercurial\util.pyo", line 472, in check
  File "C:\lib\hgsubversion\hgsubversion\wrappers.py", line 606, in generic
    return orig(ui, repo, *args, **opts)
  File "mercurial\util.pyo", line 472, in check
  File "mercurial\commands.pyo", line 4751, in push
  File "C:\lib\hgsubversion\hgsubversion\svnrepo.py", line 81, in wrapper
    return fn(self, *args, **opts)
  File "C:\lib\hgsubversion\hgsubversion\svnrepo.py", line 100, in push
    return wrappers.push(self, remote, force, revs)
  File "C:\lib\hgsubversion\hgsubversion\wrappers.py", line 240, in push
    pushmod.commit(ui, repo, old_ctx, meta, base_revision, svn)
  File "C:\lib\hgsubversion\hgsubversion\pushmod.py", line 206, in commit
    props, newcopies)
  File "C:\lib\hgsubversion\hgsubversion\svnwrap\svn_swig_wrapper.py", line 440, in commit
    editor.close_edit(edit_baton, self.pool)
  File "libsvn\delta.pyo", line 453, in close_edit
  File "libsvn\delta.pyo", line 666, in svn_delta_editor_invoke_close_edit
svn.core.SubversionException: ("Path 'trunk/Directory' not present", 160016)

Comments (2)

  1. Oliver Janik reporter
    1. I cloned a large repository with many externals
    2. I deleted couple of lines from .hgsvnexternals
    3. committed
    4. pushed
    5. error

    Do you think it has to do with .hgsvnexternals? Some externals were wrong (from old revisions).

    Edit: Any other files work as expected.

    It appears that .hgsvnexternals stores externals throughout history even old ones that do not work anymore. The question is how do I get rid of externals from old revisions that do not work?

  2. Log in to comment