[PATCH 0 of 2] convert-repo: an enhancement and a fix to cvsps backend

Edouard Gomez ed.gomez at free.fr
Mon Feb 5 17:40:42 CST 2007


Hello,

As wished by Matt, here is the start of the improvements i think are
necessary to get on par with what was available in my impoved
hg-cvs-import script.

I'm still unsatisfied by the way tags are commited by convert-repo,
i hope i'll have some more time to look at this during the week.

I'd like to have some direction about this item, because i think it's
not as easy as it looks. In the case of CVS, tags are out of the history
(except we could have some infos looking at "cvs history" output) so
it seems logical to put tag commits in their own branch, standing aside
the orginal history. That's why I've put them in a branch starting at
null node and then i was keeping track of this branch recording the node
as the 0th patchset from cvsps (which doesn't exist). Then adding tags
was just parenting the tags commit with the node tracked as the 0th
patchset. Easy, straightforward.

But what about GIT and Mercurial backends ?

A second point i dislike is that the mapping file doesn't get flush
during the conversion process. If the convert-repo script is Ctrl-C,
the map finishes empty in some cases. Why not open the mapfile once
and for all at the conversion process start, and flush it every time
we write a mapping line ?

Reviews and opinions welcome.

-- 
Edouard Gomez


More information about the Mercurial-devel mailing list