1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-21 11:13:30 +00:00
freebsd/contrib/cvs/src
John Polstra ae5dbaf270 Fix a bug that shows up when checking out files by date with the
"-D date" command line option.  There is code in the original to
handle a special case.  If the date search finds revision 1.1 it
is supposed to check whether revision 1.1.1.1 has the same date
stamp, which would indicate that the file was originally brought
in with "cvs import".  In that case it is supposed to return the
vendor branch version 1.1.1.1.

However, there is a bug in the code.  It actually compares the date
of revision 1.1 for equality with the date given on the command
line -- clearly wrong.  This commit fixes the coding bug.

There is an additional bug which is _not_ fixed in this commit.
The date comparison should not be a strict equality test.  It should
allow a fudge factor of, say, 2-3 seconds.  Old versions of CVS
created the two revisions with two separate invocations of the RCS
"ci" command.  We have many old files in the tree in which the
dates of revisions 1.1 and 1.1.1.1 differ by 1 second.

Approved by:	peter
2000-10-29 03:56:49 +00:00
..
add.c Import cvs-1.11 onto vendor branch. 2000-10-02 06:33:59 +00:00
admin.c Import cvs-1.11 onto vendor branch. 2000-10-02 06:33:59 +00:00
buffer.c
buffer.h
ChangeLog Import cvs-1.11 onto vendor branch. 2000-10-02 06:33:59 +00:00
ChangeLog-96
ChangeLog-97
ChangeLog-9194
ChangeLog-9395
checkin.c
checkout.c Import cvs-1.11 onto vendor branch. 2000-10-02 06:33:59 +00:00
classify.c Import cvs-1.10 onto vendor branch. Merge to follow shortly. 1999-03-18 09:21:42 +00:00
client.c Merge changes from 1.10.7 -> 1.11 into mainline. Note that the old 2000-10-02 06:43:58 +00:00
client.h Import cvs-1.11 onto vendor branch. 2000-10-02 06:33:59 +00:00
commit.c Merge changes from 1.10.7 -> 1.11 into mainline. Note that the old 2000-10-02 06:43:58 +00:00
create_adm.c Import cvs-1.11 onto vendor branch. 2000-10-02 06:33:59 +00:00
cvs.h Merge changes from 1.10.7 -> 1.11 into mainline. Note that the old 2000-10-02 06:43:58 +00:00
cvsbug.sh
cvsrc.c Import cvs-1.10.7. There are a number of nasty bugs that have been fixed. 1999-12-11 12:24:21 +00:00
diff.c Merge cyclic changes for 1.10.7 only our mainline. 1999-12-11 12:50:10 +00:00
edit.c Import cvs-1.11 onto vendor branch. 2000-10-02 06:33:59 +00:00
edit.h
entries.c Import cvs-1.11 onto vendor branch. 2000-10-02 06:33:59 +00:00
error.c Import cvs-1.11 onto vendor branch. 2000-10-02 06:33:59 +00:00
error.h
expand_path.c Import cvs-1.10.7. There are a number of nasty bugs that have been fixed. 1999-12-11 12:24:21 +00:00
fileattr.c Import cvs-1.11 onto vendor branch. 2000-10-02 06:33:59 +00:00
fileattr.h Import cvs-1.10.7. There are a number of nasty bugs that have been fixed. 1999-12-11 12:24:21 +00:00
filesubr.c Merge changes from 1.10.7 -> 1.11 into mainline. Note that the old 2000-10-02 06:43:58 +00:00
find_names.c Import cvs-1.10.7. There are a number of nasty bugs that have been fixed. 1999-12-11 12:24:21 +00:00
hardlink.c Import cvs-1.11 onto vendor branch. 2000-10-02 06:33:59 +00:00
hardlink.h Import cvs-1.10 onto vendor branch. Merge to follow shortly. 1999-03-18 09:21:42 +00:00
hash.c Import cvs-1.11 onto vendor branch. 2000-10-02 06:33:59 +00:00
hash.h Import cvs-1.11 onto vendor branch. 2000-10-02 06:33:59 +00:00
history.c Import cvs-1.11 onto vendor branch. 2000-10-02 06:33:59 +00:00
ignore.c Import cvs-1.11 onto vendor branch. 2000-10-02 06:33:59 +00:00
import.c Merge changes from 1.10.7 -> 1.11 into mainline. Note that the old 2000-10-02 06:43:58 +00:00
lock.c Merge changes from 1.10.7 -> 1.11 into mainline. Note that the old 2000-10-02 06:43:58 +00:00
log.c Import cvs-1.11 onto vendor branch. 2000-10-02 06:33:59 +00:00
login.c Merge changes from 1.10.7 -> 1.11 into mainline. Note that the old 2000-10-02 06:43:58 +00:00
logmsg.c Merge changes from 1.10.7 -> 1.11 into mainline. Note that the old 2000-10-02 06:43:58 +00:00
main.c Merge changes from 1.10.7 -> 1.11 into mainline. Note that the old 2000-10-02 06:43:58 +00:00
Makefile.in Import cvs-1.11 onto vendor branch. 2000-10-02 06:33:59 +00:00
mkmodules.c Merge changes from 1.10.7 -> 1.11 into mainline. Note that the old 2000-10-02 06:43:58 +00:00
modules.c Import cvs-1.11 onto vendor branch. 2000-10-02 06:33:59 +00:00
myndbm.c Import cvs-1.11 onto vendor branch. 2000-10-02 06:33:59 +00:00
myndbm.h
no_diff.c Import cvs-1.10.7. There are a number of nasty bugs that have been fixed. 1999-12-11 12:24:21 +00:00
options.h.in Import cvs-1.10.7. There are a number of nasty bugs that have been fixed. 1999-12-11 12:24:21 +00:00
parseinfo.c Import cvs-1.11 onto vendor branch. 2000-10-02 06:33:59 +00:00
patch.c Import cvs-1.11 onto vendor branch. 2000-10-02 06:33:59 +00:00
prepend_args.c Call isspace() directly to get rid of an objectionable include. 1999-12-04 08:44:05 +00:00
prepend_args.h Support the environtmental var "CVS_OPTIONS". Which can hold a set of 1999-12-04 01:23:26 +00:00
rcs.c Fix a bug that shows up when checking out files by date with the 2000-10-29 03:56:49 +00:00
rcs.h Merge changes from 1.10.7 -> 1.11 into mainline. Note that the old 2000-10-02 06:43:58 +00:00
rcscmds.c Merge cyclic changes for 1.10.7 only our mainline. 1999-12-11 12:50:10 +00:00
recurse.c Merge changes from 1.10.7 -> 1.11 into mainline. Note that the old 2000-10-02 06:43:58 +00:00
release.c Import cvs-1.11 onto vendor branch. 2000-10-02 06:33:59 +00:00
remove.c Import cvs-1.11 onto vendor branch. 2000-10-02 06:33:59 +00:00
repos.c Import cvs-1.11 onto vendor branch. 2000-10-02 06:33:59 +00:00
root.c Import cvs-1.11 onto vendor branch. 2000-10-02 06:33:59 +00:00
rtag.c Import cvs-1.11 onto vendor branch. 2000-10-02 06:33:59 +00:00
run.c Import cvs-1.11 onto vendor branch. 2000-10-02 06:33:59 +00:00
sanity.sh Import cvs-1.11 onto vendor branch. 2000-10-02 06:33:59 +00:00
scramble.c
server.c Merge changes from 1.10.7 -> 1.11 into mainline. Note that the old 2000-10-02 06:43:58 +00:00
server.h Import cvs-1.10.7. There are a number of nasty bugs that have been fixed. 1999-12-11 12:24:21 +00:00
status.c Import cvs-1.10.7. There are a number of nasty bugs that have been fixed. 1999-12-11 12:24:21 +00:00
subr.c Import cvs-1.11 onto vendor branch. 2000-10-02 06:33:59 +00:00
tag.c Import cvs-1.11 onto vendor branch. 2000-10-02 06:33:59 +00:00
update.c Merge changes from 1.10.7 -> 1.11 into mainline. Note that the old 2000-10-02 06:43:58 +00:00
update.h
vers_ts.c Import cvs-1.11 onto vendor branch. 2000-10-02 06:33:59 +00:00
version.c Import cvs-1.11 onto vendor branch. 2000-10-02 06:33:59 +00:00
watch.c Import cvs-1.11 onto vendor branch. 2000-10-02 06:33:59 +00:00
watch.h
wrapper.c Import cvs-1.10.7. There are a number of nasty bugs that have been fixed. 1999-12-11 12:24:21 +00:00
zlib.c Import cvs-1.11 onto vendor branch. 2000-10-02 06:33:59 +00:00