[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: cvs2svn

From: Bob Miller <kbob_at_jogger-egg.com>
Date: 2001-04-17 01:34:54 CEST

Greg Stein wrote:

> Changing to sort by time first solves that, at the expense of tracking N
> groups at a time.
> Oh wait. If an interleave of two sets occurs, then you don't know when you
> have the complete group. You need some kind of lookahead to decide.
> Eek...

Yeah, it's something like:

        while (ungraduated commits exist) {
                c = oldest ungraduated commit;
                CommitGroup g = {};
                add c to g;
                graduate c;
                for (cc = all ungraduated commits in chrono order) {
                        if (cc.time is outside the time heuristic)
                        if (cc is in c's group) {
                                add cc to g;
                                graduate cc;
                perform SVN commit w/ all CVS commits in g;

There's no need to work on more than one commit group at a time.

Bob Miller                              K<bob>
kbobsoft software consulting
http://kbobsoft.com                     kbob_at_jogger-egg.com
Received on Sat Oct 21 14:36:28 2006

This is an archived mail posted to the Subversion Dev mailing list.