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

 
 

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

Submitted by:  Peter Keller <peterkeller>
Submitted on:  Thu 05 Oct 2006 05:57:35 PM UTC  
 
Category: Bug ReportSeverity: 3 - Normal
Item Group: NoneStatus: Wont Fix
Privacy: PublicAssigned to: None
Open/Closed: ClosedRelease: 
Fixed Release: NoneFixed Feature Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Thu 05 Oct 2006 08:01:11 PM UTCscjonesStatusNone=>Wont Fix
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1