diff options
author | lulf <lulf@FreeBSD.org> | 2009-01-03 15:17:20 +0000 |
---|---|---|
committer | lulf <lulf@FreeBSD.org> | 2009-01-03 15:17:20 +0000 |
commit | 6bc677840cfeb9f1f2fb0fda33aa863b82528939 (patch) | |
tree | 7710ff6e38285d9c39c41ad2bf04a06e9406cdab | |
parent | 94a4b6019d079ff2422168a73af9dadeae1351bf (diff) | |
download | FreeBSD-src-6bc677840cfeb9f1f2fb0fda33aa863b82528939.zip FreeBSD-src-6bc677840cfeb9f1f2fb0fda33aa863b82528939.tar.gz |
- Write out branches with the highest revision number first if they have the
same date.
-rw-r--r-- | contrib/csup/rcsfile.c | 4 |
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; } |