Saturday, September 12, 2009

Subversion python bindings could not be loaded

If you're using Ubuntu Linux, and want to migrate Subversion to Mercurial, you can use "hg convert" to convert the Subversion repository to the Mercurial repository. But you may get the error message when you run "hg convert" like this :

% hg convert ~/subversion_repository ~/mercurial_repository
/home/satoshiabe/subversion_repository does not look like a CVS checkout
/home/satoshiabe/subversion_repository does not look like a Git repo
Subversion python bindings could not be loaded
/home/satoshiabe/subversion_repository is not a local Mercurial repo
/home/satoshiabe/subversion_repository does not look like a darcs repo
cannot find required "mtn" tool
/home/satoshiabe/subversion_repository does not look like a GNU Arch repo
abort: /home/satoshiabe/subversion_repository: unknown repository type

In this case, you can solve this problem to install the "python-subversion" package.

% sudo apt-get install python-subversion

After installing this package, you can convert it successfully. Let's try again.

% hg convert ~/subversion_repository ~/mercurial_repository
initializing destination /home/satoshiabe/mercurial_repository repository
scanning source...
sorting...
converting...
..........
..........
..........
..........
..........
%

That's all !!

1 comment:

Anonymous said...

What does this mean ..?
% sudo apt-get install python-subversion

do you mean, I install the binaries in svn or my hg repository?
I am using windows. Please let me know asap.