[bug #59447] cvs update should pause after updating Entries with timestamp in the current timestamp
anonymous <[email protected]> Wed, 11 Nov 2020 01:42:29 -0500 (EST)
| Newsgroups | gmane.comp.version-control.cvs.bugs |
|---|---|
| Message-ID | <[email protected]> |
URL:
<https://savannah.nongnu.org/bugs/?59447>
Summary: cvs update should pause after updating Entries with
timestamp in the current timestamp
Project: Concurrent Versions System
Submitted by: None
Submitted on: Wed 11 Nov 2020 06:42:28 AM UTC
Category: Bug Fix (patch attached)
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Release:
Discussion Lock: Any
Fixed Release: None
Fixed Feature Release: None
_______________________________________________________
Details:
The following sequence:
1. touch file
2. cvs update
3. echo 'new contents' > file
4. cvs commit -m 'new contents'
fails to commit in step 4 if steps 1, 2, and 3 all happen within the same
second. The reason is that step 2 notices that file's timestamp has changed
even though the contents have not and updates file's timestamp in CVS/Entries.
In step 3 the contents change but the timestamp still matches the
one-second-granularity timestamp in CVS/Entries. So in step 4 commit does not
realize that file has changed.
The attached fix arranges to sleep until the clock has passed the timestamp of
the newest entry that was updated.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Wed 11 Nov 2020 06:42:28 AM UTC Name: sleep.patch Size: 3KiB By:
None
<http://savannah.nongnu.org/bugs/download.php?file_id=50244>
_______________________________________________________
Reply to this item at:
<https://savannah.nongnu.org/bugs/?59447>
_______________________________________________
Message sent via Savannah
https://savannah.nongnu.org/