summaryrefslogtreecommitdiffstats
path: root/contrib/csup
diff options
context:
space:
mode:
authorlulf <lulf@FreeBSD.org>2008-12-02 20:48:45 +0000
committerlulf <lulf@FreeBSD.org>2008-12-02 20:48:45 +0000
commit93999cbca678125cbb2cc133b07bc26b3bc7f229 (patch)
tree467f705a4f18a88c158ceba80d1873bc379ddf8b /contrib/csup
parent7f6c5eb21eda00b5a27704e4be18ce250fcb3a1f (diff)
downloadFreeBSD-src-93999cbca678125cbb2cc133b07bc26b3bc7f229.zip
FreeBSD-src-93999cbca678125cbb2cc133b07bc26b3bc7f229.tar.gz
- Fix a bug where deltas was not sorted on RCS dates _and_ revision number.
Diffstat (limited to 'contrib/csup')
-rw-r--r--contrib/csup/rcsfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/csup/rcsfile.c b/contrib/csup/rcsfile.c
index 5e19205..267b8b1 100644
--- a/contrib/csup/rcsfile.c
+++ b/contrib/csup/rcsfile.c
@@ -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;
}
OpenPOWER on IntegriCloud