On Mon, 12 Jun 2006, Robin Rosenberg (list subscriber) wrote: > > The script creates a small CVS repo with three commits on two files. What's > odd is that cvsps lists revision 1.2 of the file v.txt *before* version 1.1, > like this: What seems to happen is that the two changes to v.txt are broken up into separate changesets (because they touch the same file), but then the _first_ one is merged with the changeset that contains the k.txt change (because they have the same log message, and roughly the same date). Then, because it has the earlier date, that combined changeset ends up being considered to be "before" the later one, even though it contains a version of v.txt that is newer. Does this patch fix it for you (untested - it could result in tons of other trouble, but it basically just says that time ordering is less important than member revision ordering). I don't think this is strictly correct, btw. I suspect you can still get into strange situations where the changeset merging has resulted in one file ordering one way, and another file ordering the other way. I really don't think cvsps is really very good about this. Linus --- diff --git a/cvsps.c b/cvsps.c index 2695a0f..daa93a3 100644 --- a/cvsps.c +++ b/cvsps.c @@ -1662,14 +1662,14 @@ static int compare_patch_sets_bytime(con * know that insertions are unique at this point. */ - diff = ps1->date - ps2->date; - if (diff) - return (diff < 0) ? -1 : 1; - ret = compare_patch_sets_by_members(ps1, ps2); if (ret) return ret; + diff = ps1->date - ps2->date; + if (diff) + return (diff < 0) ? -1 : 1; + ret = strcmp(ps1->author, ps2->author); if (ret) return ret; - : 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