Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Oct 2000 20:56:50 -0700 (PDT)
From:      John Polstra <jdp@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/contrib/cvs/src rcs.c
Message-ID:  <200010290356.UAA12649@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
jdp         2000/10/28 20:56:50 PDT

  Modified files:
    contrib/cvs/src      rcs.c 
  Log:
  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
  
  Revision  Changes    Path
  1.21      +4 -2      src/contrib/cvs/src/rcs.c



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200010290356.UAA12649>