summaryrefslogtreecommitdiffstats
path: root/contrib/csup
diff options
context:
space:
mode:
authorlulf <lulf@FreeBSD.org>2009-01-03 15:17:20 +0000
committerlulf <lulf@FreeBSD.org>2009-01-03 15:17:20 +0000
commit6bc677840cfeb9f1f2fb0fda33aa863b82528939 (patch)
tree7710ff6e38285d9c39c41ad2bf04a06e9406cdab /contrib/csup
parent94a4b6019d079ff2422168a73af9dadeae1351bf (diff)
downloadFreeBSD-src-6bc677840cfeb9f1f2fb0fda33aa863b82528939.zip
FreeBSD-src-6bc677840cfeb9f1f2fb0fda33aa863b82528939.tar.gz
- Write out branches with the highest revision number first if they have the
same date.
Diffstat (limited to 'contrib/csup')
-rw-r--r--contrib/csup/rcsfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/csup/rcsfile.c b/contrib/csup/rcsfile.c
index 050fe53..0318f30 100644
--- a/contrib/csup/rcsfile.c
+++ b/contrib/csup/rcsfile.c
@@ -490,7 +490,7 @@ rcsfile_write_deltatext(struct rcsfile *rf, struct stream *dest)
}
d_tmp2 = LIST_FIRST(&branchlist_datesorted);
- if (rcsnum_cmp(d_tmp->revdate, d_tmp2->revdate) < 0) {
+ if (rcsnum_cmp(d_tmp->revdate, d_tmp2->revdate) <= 0) {
LIST_INSERT_BEFORE(d_tmp2, d_tmp,
branch_next_date);
continue;
@@ -498,7 +498,7 @@ rcsfile_write_deltatext(struct rcsfile *rf, struct stream *dest)
while ((d_tmp3 = LIST_NEXT(d_tmp2, branch_next_date))
!= NULL) {
if (rcsnum_cmp(d_tmp->revdate, d_tmp3->revdate)
- < 0)
+ <= 0)
break;
d_tmp2 = d_tmp3;
}
OpenPOWER on IntegriCloud