hg convert vs. strange svn repo...

Augie Fackler lists at durin42.com
Tue Jan 12 12:29:43 CST 2010


On Tue, Jan 12, 2010 at 8:12 AM, Greg Ward <greg-hg at gerg.ca> wrote:
> On Tue, Jan 12, 2010 at 1:58 AM, Ryan C. Gordon <icculus at icculus.org> wrote:
>> So how do I untangle this thing? Is this a bug in hg convert, or is it doing
>> the right thing with my wrong data? In any case, is there a reasonable way
>> to coerce hg convert to work with this, or a reasonable way to manipulate a
>> dump of the svn repo into a form that Mercurial would be more happy to
>> parse?
>
> hg's svn converter assumes the standard /trunk, /branches, /tags
> layout.  Apparently that applies at every input revision, so it does
> indeed get confused by your /trunk-less revision(s).
>
> Two ideas:
>
> 1) use svn's dump-and-filter tools to magically alter your svn history
> into something that 'hg convert' can handle
> 2) improve hg convert's handling of oddball svn repositories

One more thought: Try hgsubversion. I know hgsubversion copes with
this kind of thing on other repositories. If convert is working you
likely already have the bindings installed, so it shouldn't be too
hard to get it going.

In all honesty, you might find other bugs in hgsubversion, but
depending on what they look like they might be trivial to fix.

>
> #2 is a bigger pill to swallow, but more people will benefit in the
> long run.  ;-)
>
> Greg
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial
>


More information about the Mercurial mailing list