bugConcurrent Versions System - Bugs: bug #17919, Auto-correct of contents of...

 
 

bug #17919: Auto-correct of contents of CVS/Entries does not always work

Submitter:  Peter Keller <peterkeller>
Submitted:  Thu 05 Oct 2006 05:57:35 PM UTC
   
 
Category:  Bug Report Severity:  3 - Normal
Item Group:  None Status:  Wont Fix
Privacy:  Public Assigned to:  None
Open/Closed:  Closed Release: 
Fixed Release:  None Fixed Feature Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 05 Oct 2006 08:01:11 PM UTC, comment #1: 

Such an Entries file is malformed.  The code in CVS is designed to prevent ever creating such an entry in the first place.  The fact that it happens to correct such a malformed entry on occasion is just a happy accident, not intended behavior.

Larry Jones <scjones>
Group administrator
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


Peter Keller <peterkeller>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-10-05 scjones StatusNone Wont Fix
    Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.13-3230.
Corresponding source code