Changeset 280655 in webkit
- Timestamp:
- Aug 4, 2021, 1:44:38 PM (5 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
Scripts/check-github-mirror-integrity (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r280651 r280655 1 2021-08-04 Jonathan Bedard <jbedard@apple.com> 2 3 [check-github-mirror-integrity] Compare current time to canonical time 4 https://bugs.webkit.org/show_bug.cgi?id=228787 5 <rdar://problem/81524499> 6 7 Reviewed by Aakash Jain. 8 9 * Scripts/check-github-mirror-integrity: If the mirror isn't in line with the canonical repository, we should 10 check against the current time, not the time of last commit on the mirror. 11 1 12 2021-08-03 Myles C. Maxfield <mmaxfield@apple.com> 2 13 -
trunk/Tools/Scripts/check-github-mirror-integrity
r280602 r280655 25 25 import os 26 26 import sys 27 import time 27 28 28 29 from webkitpy import webkitscmpy … … 42 43 return 0 43 44 44 if mirror_tip.timestamp>= canonical_tip.timestamp - 5 * 60 and mirror_tip.identifier == canonical_tip.identifier - 1:45 if time.time() >= canonical_tip.timestamp - 5 * 60 and mirror_tip.identifier == canonical_tip.identifier - 1: 45 46 print('GitHub is 1 commit behind svn.webkit.org. This is ok.') 46 47 print(f'HEAD commit on GitHub {mirror_tip} slightly behind HEAD commit on svn.webkit.org {canonical_tip}')
Note:
See TracChangeset
for help on using the changeset viewer.