Changeset 275635 in webkit
- Timestamp:
- Apr 7, 2021 3:25:20 PM (3 years ago)
- Location:
- trunk/Tools
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r275624 r275635 1 2021-04-07 Jonathan Bedard <jbedard@apple.com> 2 3 [webkitscmpy] Handle multiple double-branch commits 4 https://bugs.webkit.org/show_bug.cgi?id=224251 5 <rdar://problem/76288547> 6 7 Reviewed by Dewei Zhu. 8 9 There are a few cases, namely on the safari-607-branch, where some commits where made both 10 on trunk and on a branch. In one notable case, two sequential commits were made this way. 11 12 * Scripts/libraries/webkitscmpy/setup.py: Bump version. 13 * Scripts/libraries/webkitscmpy/webkitscmpy/__init__.py: Ditto. 14 * Scripts/libraries/webkitscmpy/webkitscmpy/local/svn.py: 15 (Svn._cache_revisions): Handle multiple double-branch commits. 16 * Scripts/libraries/webkitscmpy/webkitscmpy/remote/svn.py: 17 (Svn._cache_revisions): Handle multiple double-branch commits. 18 1 19 2021-04-07 Aakash Jain <aakash_jain@apple.com> 2 20 -
trunk/Tools/Scripts/libraries/webkitscmpy/setup.py
r275604 r275635 30 30 setup( 31 31 name='webkitscmpy', 32 version='0.13. 8',32 version='0.13.9', 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
r275604 r275635 47 47 ) 48 48 49 version = Version(0, 13, 8)49 version = Version(0, 13, 9) 50 50 51 51 AutoInstall.register(Package('fasteners', Version(0, 15, 0))) -
trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/local/svn.py
r274080 r275635 166 166 raise self.Exception("Failed to construct branch history for '{}'".format(branch)) 167 167 168 was_last_on_default = False168 default_count = 0 169 169 line = log.stdout.readline() 170 170 while line: … … 182 182 if not is_default_branch: 183 183 if revision in self._metadata_cache[self.default_branch]: 184 if was_last_on_default: 184 # Only handle 2 sequential cross-branch commits 185 if default_count > 2: 185 186 break 186 was_last_on_default = True187 default_count += 1 187 188 else: 188 was_last_on_default = False189 default_count = 0 189 190 self._metadata_cache[branch].insert(pos, revision) 190 191 line = log.stdout.readline() … … 193 194 log.kill() 194 195 196 if default_count: 197 self._metadata_cache[branch] = self._metadata_cache[branch][default_count - 1:] 195 198 if self._metadata_cache[self.default_branch][0] == [0]: 196 199 self._metadata_cache['identifier'] = len(self._metadata_cache[branch]) -
trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/remote/svn.py
r274080 r275635 243 243 raise self.Exception("Failed to construct branch history for '{}'".format(branch)) 244 244 245 was_last_on_default = False245 default_count = 0 246 246 for line in response.iter_lines(): 247 247 match = self.HISTORY_RE.match(line) … … 260 260 if not is_default_branch: 261 261 if revision in self._metadata_cache[self.default_branch]: 262 if was_last_on_default: 262 # Only handle 2 sequential cross-branch commits 263 if default_count > 2: 263 264 break 264 was_last_on_default = True265 default_count += 1 265 266 else: 266 was_last_on_default = False267 default_count = 0 267 268 self._metadata_cache[branch].insert(pos, revision) 268 269 270 if default_count: 271 self._metadata_cache[branch] = self._metadata_cache[branch][default_count - 1:] 269 272 if self._metadata_cache[self.default_branch][0] == [0]: 270 273 self._metadata_cache['identifier'] = len(self._metadata_cache[branch])
Note: See TracChangeset
for help on using the changeset viewer.