Clone Subversion to Mercurial Fails with 'unknown exception'

Still need help?

The Atlassian Community is here for you.

Ask the community

Problem

An 'Unknown Exception' error message appears when cloning Subversion. An error appears:

** unknown exception encountered, please report by visiting
** http://mercurial.selenic.com/wiki/BugTracker
** Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) [GCC 4.2.1 (Apple Inc. build 5646)] 
** Mercurial Distributed SCM (version 1.7+20101101)
** Extensions loaded: rebase, progress, mq, transplant, extdiff, graphlog, hgsubversion
Traceback (most recent call last):
 File "/usr/local/bin/hg", line 38, in <module>
 mercurial.dispatch.run()
[...]
 assert self.svn_url.startswith(self.root)
AssertionError

Cause

This occurs when using an SSH URL with a 'double slash' format to specify a path from the root, like this:

svn+ssh://user@server.com//home/svn/myproject 

 hgsubversion doesn't like the double-slash.

Resolution

To avoid this problem, remove the doubleslash in the root path, like this:

svn+ssh://user@server.com/home/svn/myproject

The repository should then clone successfully.

 

Last modified on Aug 1, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.