On Tue, Jul 04, 2006 at 10:09:18AM +0200, Johannes Schindelin wrote: > Hi, > > On Tue, 4 Jul 2006, Martin Langhoff wrote: > > > It is pretty hard to get that one right in any case, as there are > > cases where the new branch starts from something that is not a commit > > in the parent (from GIT's perspective). > > But it should be easy to introduce a faked commit, which just contains > those versions (and takes the newest commit touching any of these file > versions as branch point). Of couye in theory, (if cvs was used sanely), the base of each branch should be a commit on the parent-branch. But as we all know, cvs allows pathologic cases. (My script doesn't create such a case, it's sanely representable in git without any fake commits.) So now for the patholigic cases (when they're solved, the main issue is solved too): Of course, the base version for a branch can be turned into a tree (should be easy: cvsps's first changeset of the branch has the previous revisions of each file). This tree can also be turned into a fake commit... just which parent should our new fake commit have? My current simple answer is: The commit on the parent branch with the most matching number of files, so that the diff, that the fake commit introduces has the least number of files. In the non-patholoc case, the fake commit would introduce no diff at all and should be dropped. Of couse I have no idea, how hard it would be to implement this. And in reality, it would be cvsps's job to do that. Elrond - : send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html