Turning cvs2{svn,git} into cvs2hg

Patrick Mézard pmezard at gmail.com
Sun Jul 19 12:00:29 CDT 2009


Dirkjan Ochtman a écrit :
>> The drawbacks are more subtle:
>>  * not using hg's convert extension means my proposed cvs2hg would not
>>    benefit from one key feature of it, namely the toposort that produces
>>    a space-optimal hg repo (OTOH, my hg-writing backend would certainly
>>    depend on Mercurial's API, so I could hook in toposort somehow)
> 
> I've run Benoit's revlog reordering script on the Python repo with
> great succes. You should try it for your case as well. If that works
> for you, I'd posit that the toposorting the changelog as well wouldn't
> make that much of a difference. Actually, post-facto toposorting would
> probably not be extremely hard and it would be useful to have a script
> for in general.

And that's not a big deal since convert toposort is something like 20 lines of code, and not some kind of bleeding edge algorithm.

--
Patrick Mézard


More information about the Mercurial-devel mailing list