Thu 05 Oct 2006 05:57:35 PM UTC, original submission:
If the day-of-month field of a date in CVS/Entries has a leading 0, cvs will remove it, but this does not always work. I have tested this with version 1.12.13.1 (built on RedHat WS 4.0 with no options to ./configure). To reproduce do the following. Note that it is necessary for the working file to contain the $Name$ keyword to illustrate this problem. I have only tried this for a date where the day-of-month is a single digit. I do not know if this is a problem for any date, but I could investigate later this month.
Whatever the specified/intended behaviour is, the difference in behaviour between a branch and the trunk is clearly a bug.
## Create and populate a repository
setenv CVSROOT <some empty directory>
cvs --sign=off init
mkdir test
cd test
cat >blah.txt <<'EOF'
$Name$
'EOF'
cvs --sign=off import -m test test start test
cd ..
## Illustrate correct behaviour
cvs co -d test.trunk test
cd test.trunk
cvs status <----- Should show file is 'Up-to-date'
## Edit first line of CVS/Entries: replace space in front of date
## with zero, e.g. from
## /blah.txt/1.1.1.1/Thu Oct 5 17:30:42 2006//Tmybranch
## to
## /blah.txt/1.1.1.1/Thu Oct 05 17:30:42 2006//Tmybranch
cvs status <----- Should show file is 'Up-to-date'
cat CVS/Entries <----- Edit above should have been reversed
# Now create a branch and illustrate bug
cvs tag -b mybranch
cd ..
cvs co -r mybranch -d test.branch test
cd test.branch
cvs status <----- Should show file is 'Up-to-date'
## Edit first line of CVS/Entries as before
cvs status <------ Will show file as Locally Modified
cat CVS/Entries <------ Edit not reversed
|