Changeset 280663 in webkit
- Timestamp:
- Aug 4, 2021, 2:29:09 PM (5 years ago)
- Location:
- trunk/Tools
- Files:
-
- 5 edited
-
ChangeLog (modified) (1 diff)
-
Scripts/check-github-mirror-integrity (modified) (1 diff)
-
Scripts/libraries/webkitscmpy/setup.py (modified) (1 diff)
-
Scripts/libraries/webkitscmpy/webkitscmpy/__init__.py (modified) (1 diff)
-
Scripts/libraries/webkitscmpy/webkitscmpy/remote/svn.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r280655 r280663 1 2021-08-04 Jonathan Bedard <jbedard@apple.com> 2 3 [check-github-mirror-integrity] Store remote cache in checkout 4 https://bugs.webkit.org/show_bug.cgi?id=228792 5 <rdar://problem/81527357> 6 7 Reviewed by Aakash Jain. 8 9 * Scripts/check-github-mirror-integrity: Use the local checkout to store the svn.webkit.org, if possible. 10 * Scripts/libraries/webkitscmpy/setup.py: Bump version. 11 * Scripts/libraries/webkitscmpy/webkitscmpy/__init__.py: Ditto. 12 * Scripts/libraries/webkitscmpy/webkitscmpy/remote/svn.py: 13 (Svn.__init__): Allow caller to define cache path. 14 (Svn._cache_path): Deleted. 15 1 16 2021-08-04 Jonathan Bedard <jbedard@apple.com> 2 17 -
trunk/Tools/Scripts/check-github-mirror-integrity
r280655 r280663 28 28 29 29 from webkitpy import webkitscmpy 30 from webkitscmpy import remote30 from webkitscmpy import local, remote 31 31 32 32 33 33 def main(): 34 cache_path = None 35 try: 36 repo = local.Scm.from_path(os.path.dirname(__file__)) 37 cache_path = os.path.join(repo.root_path, '.git' if repo.is_git else '.svn', 'svn-webkit-org-cache.json') 38 except OSError: 39 pass 40 34 41 mirror = remote.GitHub('https://github.com/WebKit/WebKit') 35 repository = remote.Svn('https://svn.webkit.org/repository/webkit' )42 repository = remote.Svn('https://svn.webkit.org/repository/webkit', cache_path=cache_path) 36 43 37 44 mirror_tip = mirror.commit(branch='main') -
trunk/Tools/Scripts/libraries/webkitscmpy/setup.py
r280604 r280663 30 30 setup( 31 31 name='webkitscmpy', 32 version='1.0. 5',32 version='1.0.6', 33 33 description='Library designed to interact with git and svn repositories.', 34 34 long_description=readme(), -
trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/__init__.py
r280604 r280663 47 47 ) 48 48 49 version = Version(1, 0, 5)49 version = Version(1, 0, 6) 50 50 51 51 AutoInstall.register(Package('fasteners', Version(0, 15, 0))) -
trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/remote/svn.py
r277853 r280663 47 47 return True if cls.URL_RE.match(url) else False 48 48 49 def __init__(self, url, dev_branches=None, prod_branches=None, contributors=None, id=None ):49 def __init__(self, url, dev_branches=None, prod_branches=None, contributors=None, id=None, cache_path=None): 50 50 if url[-1] != '/': 51 51 url += '/' … … 59 59 id=id or url.split('/')[-2].lower(), 60 60 ) 61 62 if not cache_path: 63 from webkitscmpy.mocks import remote 64 host = 'svn.{}'.format(self.URL_RE.match(self.url).group('host')) 65 if host in remote.Svn.remotes: 66 host = 'mock-{}'.format(host) 67 cache_path = os.path.join(tempfile.gettempdir(), host, 'webkitscmpy-cache.json') 68 self._cache_path = cache_path 61 69 62 70 if os.path.exists(self._cache_path): … … 194 202 def tags(self): 195 203 return self.list('tags') 196 197 @property198 @decorators.Memoize()199 def _cache_path(self):200 from webkitscmpy.mocks import remote201 host = 'svn.{}'.format(self.URL_RE.match(self.url).group('host'))202 if host in remote.Svn.remotes:203 host = 'mock-{}'.format(host)204 return os.path.join(tempfile.gettempdir(), host, 'webkitscmpy-cache.json')205 204 206 205 def _cache_lock(self):
Note:
See TracChangeset
for help on using the changeset viewer.