|
29 | 29 | from sonar.util import types |
30 | 30 | import sonar.logging as log |
31 | 31 | import sonar.sqobject as sq |
32 | | -from sonar import components, syncer, settings, exceptions |
| 32 | +from sonar import components, settings, exceptions |
33 | 33 | from sonar import projects |
34 | 34 | import sonar.utilities as util |
35 | 35 |
|
@@ -330,17 +330,19 @@ def sync(self, another_branch: Branch, sync_settings: types.ConfigSettings) -> t |
330 | 330 | :return: sync report as tuple, with counts of successful and unsuccessful issue syncs |
331 | 331 | :rtype: tuple(report, counters) |
332 | 332 | """ |
| 333 | + from sonar.syncer import sync_lists |
| 334 | + |
333 | 335 | report, counters = [], {} |
334 | 336 | log.info("Syncing %s (%s) and %s (%s) issues", str(self), self.endpoint.url, str(another_branch), another_branch.endpoint.url) |
335 | | - (report, counters) = syncer.sync_lists( |
| 337 | + (report, counters) = sync_lists( |
336 | 338 | list(self.get_issues().values()), |
337 | 339 | list(another_branch.get_issues().values()), |
338 | 340 | self, |
339 | 341 | another_branch, |
340 | 342 | sync_settings=sync_settings, |
341 | 343 | ) |
342 | 344 | log.info("Syncing %s (%s) and %s (%s) hotspots", str(self), self.endpoint.url, str(another_branch), another_branch.endpoint.url) |
343 | | - (tmp_report, tmp_counts) = syncer.sync_lists( |
| 345 | + (tmp_report, tmp_counts) = sync_lists( |
344 | 346 | list(self.get_hotspots().values()), |
345 | 347 | list(another_branch.get_hotspots().values()), |
346 | 348 | self, |
|
0 commit comments