Skip to content

Commit 93b2315

Browse files
committed
Fixes #1355
1 parent bfe9974 commit 93b2315

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

sonar/branches.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
from sonar.util import types
3030
import sonar.logging as log
3131
import sonar.sqobject as sq
32-
from sonar import components, syncer, settings, exceptions
32+
from sonar import components, settings, exceptions
3333
from sonar import projects
3434
import sonar.utilities as util
3535

@@ -330,17 +330,19 @@ def sync(self, another_branch: Branch, sync_settings: types.ConfigSettings) -> t
330330
:return: sync report as tuple, with counts of successful and unsuccessful issue syncs
331331
:rtype: tuple(report, counters)
332332
"""
333+
from sonar.syncer import sync_lists
334+
333335
report, counters = [], {}
334336
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(
336338
list(self.get_issues().values()),
337339
list(another_branch.get_issues().values()),
338340
self,
339341
another_branch,
340342
sync_settings=sync_settings,
341343
)
342344
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(
344346
list(self.get_hotspots().values()),
345347
list(another_branch.get_hotspots().values()),
346348
self,

0 commit comments

Comments
 (0)