bugConcurrent Versions System - Bugs: bug #17530, Updates which only affect sticky...

 
 

bug #17530: Updates which only affect sticky tags should not output 'U' status.

Submitted by:  Derek Robert Price <dprice>
Submitted on:  Fri 25 Aug 2006 08:42:01 PM UTC  
 
Category: Bug ReportSeverity: 2 - Minor
Item Group: NoneStatus: Confirmed
Privacy: PublicAssigned to: None
Open/Closed: OpenRelease: 1.11.22
Fixed Release: NoneFixed Feature Release: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Fri 25 Aug 2006 08:42:01 PM UTC, original submission:

Per the notes in bug #17168, updates which only affect sticky tags but which do not change file contents should not output a `U' status.

To demonstrate, `cvs up -rbranch && cvs up -A', with a branch that mirrors the content of the trunk.

This should be possible simple to do in update_fileproc. Have patch_file set docheckout to -1 when there are no differences between the workfile and the new version. Then, in update_fileproc, when docheckout == -1, skip calling server_updated and just abuse Checked-in response (perhaps via server_checked_in()) to send the entry to the client, as is already done in several other locations.

Unfortunately, this would really be an abstraction violation. Classify_File should return T_ENTRY or the like if only the entry should be updated, but to do this would require some test checkouts, and to do that efficiently would require caching the checkouts for later use by patch_file or whatever. All this would be a lot of work to get right.

Derek Robert Price <dprice>
Project Administrator

 

(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):

 

 

No Changes Have Been Made to This Item

Back to the top


Powered by Savane 3.1-cleanup