AW: Problem Converting from Subversion to Mercurial

Petriconi, Felix Felix.Petriconi at mevis.de
Tue Sep 4 07:36:55 UTC 2012


Hi Todd,

first my blog regarding the conversion to Hg from SVN might help you: http://petriconi.net/?p=10

My biggest recommendation is here, to perform the complete conversion under Linux. Not under Windows, because at least for me not all SVN tools work properly on Windows XP/Server 2003.
I tried to get real branches transferred into Hg, but that did not work for me. So we choose those few branches that we really might need. At the end we only needed only the very last branch. We kept the SVN server still running to look into the past. So perhaps you should rethink, if you really need all the old branches.

I hope this helps, regards, Felix

Felix Petriconi
Development Manager
Certified Scrum Master (CSM)

MeVis BreastCare Solutions GmbH & Co. KG
A MeVis Medical Solutions company
Universitaetsallee 29
28359 Bremen
Germany
Phone: +49 (0)421 33074-(9)20
Fax:      +49 (0)421 33074-50

E-mail: felix.petriconi at mevis.de<mailto:felix.petriconi at mevis.de>
Website: www.mevis.de<http://www.mevis.de/>

Trade Registry: Bremen HRA 25204 HB
VAT ID: DE262661277

Executive Board:
Marcus Kirchhoff, Dr. Robert Hannemann
MeVis BreastCare Solutions Verwaltungs-GmbH

Von: mercurial-bounces at selenic.com [mailto:mercurial-bounces at selenic.com] Im Auftrag von Todd Greer
Gesendet: Mittwoch, 22. August 2012 17:18
An: mercurial at selenic.com
Betreff: Problem Converting from Subversion to Mercurial

I'm having a bit of difficulty with a conversion from a particular Subversion repository, and I would be very grateful if anyone could offer some useful advice.

The svn repo in question has several different projects, and used a somewhat nonstandard layout. Each project had it's own "trunk" and "branches" (though the latter mostly stores what the team considers tags). Every time they started development towards a new release, they copied the trunk of every relevant project to a new directory, and created a new "branches" directory next to it. I'll illustrate:

/product1/
1.0/
                project1/
trunk/
branches/ (several copies of ../trunk)
project2/
                trunk/
                branches/ (several copies of ../trunk)
2.0/
                project1/
                                trunk/ (copied from /product1/1.0/project1/trunk, then developed on)
                branches (several copies of ../trunk)
                                project2/
                                                trunk/ (copied from /pro duct1/1.0/project2/trunk, then developed on)
                                                branches (several copies of ../trunk)
                3.0/ (same layout)
/product2/ (various layouts)

My initial approach was to run 1 conversion per project, pointing at the latest version of product1, in the simplest way ("hg convert svn://x.x.x.x//product1/3.0/project1", etc.). For most of the projects, this appears to have worked flawlessly, but for a few, it fails, saying "abort: no revision found in module /product1/3.0/project1/trunk".

I'm using Hg version 2.0.2 on Windows via the TortoiseHg installer. The only additional configuration I'm giving convert is an -authors map, but I'm assuming that's irrelevant. I haven't noticed anything special about the projects that fail, but I'm guessing convert tripping up on one of the places where directories are copied and/or deleted (and in some cases created by copy, then deleted, then re-created by copy from the same place).

If you can offer any advice (that doesn't involve a time machine), I will greatly appreciate it.

Thank you,
Todd

[Description: cid:72965558-AF04-45FF-B811-584C9FA3C338]
Todd Greer, Director of Development, Affinegy, Inc.
1705 S. Capital of Texas Hwy, Ste. 310, Austin, TX, 78746
O 512.535.1700 | F 512.233.2477
tgreer at affinegy.com<mailto:tgreer at affinegy.com>    http://affinegy.com<http://affinegy.com/>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20120904/20a6a38a/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 9194 bytes
Desc: image001.png
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20120904/20a6a38a/attachment-0002.png>


More information about the Mercurial mailing list