Search code examples
svnmercurialmercurial-convert

Hg convert to SVN gives "does not look like a Subversion repository"


This question pretty much the same as HG Convert on SVN gives "does not look like a Subversion Repository" , but solution given there did not work for me.

Even though I have local svn repository compatible with Subversion 1.7 (db format 4) I get this:

D:\Work>hg convert file:///D:\Work\pbr
assuming destination pbr-hg
initializing destination pbr-hg repository
file:///D:\Work\pbr does not look like a CVS checkout
file:///D:\Work\pbr does not look like a Git repository
file:///D:\Work\pbr does not look like a Subversion repository
file:///D:\Work\pbr is not a local Mercurial repository
file:///D:\Work\pbr does not look like a darcs repository
file:///D:\Work\pbr does not look like a monotone repository
file:///D:\Work\pbr does not look like a GNU Arch repository
file:///D:\Work\pbr does not look like a Bazaar repository
file:///D:\Work\pbr does not look like a P4 repository
abort: file:///D:\Work\pbr: missing or unsupported repository

I have TortoiseHg 2.11 (with Mercurial 2.9) and TortoiseSVN 1.8.4 (Subversion 1.8.5) on Windows 8 Pro x64. I followed the steps here http://blog.dummzeuch.de/2013/12/26/converting-from-subversion-to-mercurial/

Tried to use SVN 1.5 repository format with db format 3 with same result.

I also tried to set up HGSubversion (not exactly sure if this will ) by cloning it from repository and enabling extension in %userprofile%\mercurial.ini as described in manual https://www.mercurial-scm.org/wiki/HgSubversion

[extensions]
hgsubversion = D:\Work\hgsubversion

Couldn't get it working, here's what I got:

D:\Work>hg help hgsubversion
*** failed to import extension hgsubversion from D:\Work\hgsubversion: No module named hgsubversion
hg: unknown command 'hgsubversion'
Mercurial Distributed SCM
****
use "hg help" for the full list of commands or "hg -v" for details

As far as I understand though HGSubversion won't convert the svn repository (I do want to convert). I tried it because was listed as a possible solution in the other thread.

Please help me get this into Mercurial!


Solution

  • I had to reboot the system due software update and when I tried "hg convert" today it worked. So if anyone has the same issue, it's worth a try, maybe re-login could be enough.