Request for help adding Mercurial output to cvs2svn

Matt Mackall mpm at selenic.com
Fri Feb 22 19:34:04 CST 2008


On Fri, 2008-02-22 at 23:58 +0100, Michael Haggerty wrote:
> Steve Borho wrote:
> > On Fri, 2008-02-22 at 22:24 +0100, Michael Haggerty wrote:
> >> Wouldn't it be great if the Mercurial project would develop an
> >> hg-fast-import tool? [...]
> > 
> > Any reason not to use the existing Mercurial bundle format?  Is it just
> > not documented well enough?
> 
> I didn't know about it.  (I asked earlier on this thread whether there
> was a "dump" file format for Mercurial, and nobody mentioned one.)
> 
> Of course, a single "lingua franca" format that works across VCSs would
> be even more convenient, but if the bundle format is usable and
> reasonably well documented, then I would certainly look into it.  Where
> is it documented and how do I load such a thing into an hg repository?

Probably the easiest thing here is to add something that fits the input
needs of "hg convert". Convert internally converts every front-end SCM's
output into a generic changeset representation and hands it off to the
backend SCM (not necessarily hg).

Another possibility is to teach the CVS front-end to parse output from
your tool in place of cvsps. The current code that interfaces to cvsps
is a mere hundred lines and handling a sane output format could make
that much smaller still.

-- 
Mathematics is the supreme nostalgia of our time.



More information about the Mercurial-devel mailing list