Converting Linux Svn Repos to Windows Svn Repos

Migrating from VisualSVN on windows to linux based svn

The syntax for svnadmin load should be

svnadmin load /path/to/repository < dumpfile

See here

Checking out a Linux-based subversion project into Windows and line endings

You should probably use svn:eol-style= native. This means that it'll convert LF to CRLF when on windows, and keep LF on linux. It doesn't matter on what system you set the property.

See also svnbook

How to migrate/convert from SVN to Mercurial (hg) on windows

I just had to tackle this problem myself. I have a windows XP machine with a separate windows server hosting VisualSVN Server.

I also have TortoiseHG installed as well as the CollabNet Subversion Command-Line Client.

<Enable Convert Extension w/ Tortoise Hg 2>

Many thanks to bgever for pointing out in the comments that with TortoiseHg 2.0, enabling the convert extension is easier than ever. As he says

With TortoiseHG 2.0 this has been made
much simpler: Start the TortoiseHG
Workbench from the Start menu. Select
File --> Settings. Select Extensions
from the list. Check the 'convert'
checkbox and click OK. That's it! No
need to try to generate the config
file anymore and search it in the file
system. – bgever Mar 11 at 7:56

</Enable Convert Extension w/ Tortoise Hg 2>

<Enable Convert Extension Manually>

To convert a repository from SVN to HG, I followed these steps:

1) Open C:\Program Files\TortoiseHg\Mercurial.ini

EDIT

FYI - Tortoise Hg has migrated this file to

  • XP or older - C:\Documents and Settings\USERNAME\Mercurial.ini
  • Vista or later - C:\Users\USERNAME\Mercurial.ini

That file will be mostly empty and you'll just list what you'd like to override there. If that's what you have, simple add these two lines to the very end of the file:

[extensions]
convert =

2) Search for the line that begins with

[extensions]

3) Below it you'll see a list of keywords, commented out with a semicolon (;) on each line

4) Find the line that says

;convert =

and delete the semicolon so it reads

convert =

</Enable Convert Extension Manually>

5) Open the command prompt and navigate to the directory that you'd like the new hg folder created in (the process will create a new folder called yoursvnreponame-hg in the directory that the command prompt is open to).

6) Use this command

hg convert file:///y:/yoursvnreponame

I found that the convert tool can have problems with networked repositories, so I had to map a drive to it, but this worked just fine for me.

svn command line when using a file repository instead of a server repository

the easiest way to accomplish this problem was to setup the subversion server as an HTTP server, so the subversion repository is at http://raspy/repo for example



Related Topics



Leave a reply



Submit