Public bug reported:

Binary package hint: mercurial

Using "hg convert" to convert a Subversion repository to Mercurial
requires python-subversion, but this requirement is not documented.
Example:

"""
$ sudo apt-get remove python-subversion
[...]
$ svnadmin create /tmp/repo1
$ hg convert /tmp/repo1  
assuming destination repo1-hg
initializing destination repo1-hg repository
abort: /tmp/repo1: unknown repository type
"""

You have to guess that adding --debug to the hg command line might help:

"""
$ hg --debug convert -s svn /tmp/repo1 
assuming destination repo1-hg
initializing destination repo1-hg repository
convert: subversion python bindings could not be loaded
abort: /tmp/repo1: unknown repository type
"""

After this, I was able to figure out that "apt-get install python-
subversion" might help, and indeed it did.  However, the Ubuntu package
of mercurial neither "Suggests" nor "Recommends" python-subversion.  If
I understand correctly, this should be a "Suggests" dependency: it's not
core functionality, but it is a feature of mercurial that does not work
without python-subversion.

Source package: mercurial
Version: 0.9.5-3
Ubuntu release: 8.04 "hardy"

Oh yeah: what I *expected* to happen, of course, was a flawless
conversion of my Subversion repository to Mercurial without any
additional work on my part.  I would be happy, though, if

  hg convert /tmp/repo1

failed with a clear error message like

  cannot convert Subversion repository /tmp/repo1: subversion python
bindings could not be loaded

...i.e. I should not have had to use "--debug" to find out the problem.
For bonus points, it would be nice to have a Debian/Ubuntu patch that
enhanced the error message to

  cannot convert Subversion repository /tmp/repo1: subversion python
bindings could not be loaded (did you install python-subversion?)

or something similar.

** Affects: mercurial (Ubuntu)
     Importance: Undecided
         Status: New

-- 
"hg convert" on Subversion repository fails (almost) silently unless 
python-subversion installed
https://bugs.launchpad.net/bugs/233878
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to