- Fix a bug where deltas was not sorted on RCS dates _and_ revision number.

This commit is contained in:
Ulf Lilleengen 2008-12-02 20:48:45 +00:00
parent ab0135bc74
commit 627156f119

View File

@ -1207,7 +1207,7 @@ rcsfile_insertdelta(struct branch *b, struct delta *d, int trunk)
} else {
/* XXX: here we depend on the date being set, but it
* should be before this is called anyway. */
if (rcsnum_cmp(d->revdate, d2->revdate) <= 0) {
if (rcsnum_cmp(d->revdate, d2->revdate) < 0) {
LIST_INSERT_BEFORE(d2, d, delta_next);
return;
}