events: send pushed commit ids in order
This commit is contained in:
parent
2a46a56fff
commit
b6c110dc52
1 changed files with 3 additions and 3 deletions
|
|
@ -47,7 +47,7 @@ def _commits_as_dict(commit_ids, repos):
|
|||
if not commit_ids:
|
||||
return []
|
||||
|
||||
needed_commits = set(commit_ids)
|
||||
needed_commits = list(commit_ids)
|
||||
|
||||
commits = []
|
||||
reviewers = []
|
||||
|
|
@ -57,7 +57,7 @@ def _commits_as_dict(commit_ids, repos):
|
|||
|
||||
vcs_repo = repo.scm_instance(cache=False)
|
||||
try:
|
||||
for commit_id in list(needed_commits):
|
||||
for commit_id in needed_commits:
|
||||
try:
|
||||
cs = vcs_repo.get_changeset(commit_id)
|
||||
except CommitDoesNotExistError:
|
||||
|
|
@ -78,7 +78,7 @@ def _commits_as_dict(commit_ids, repos):
|
|||
repo.repo_name)
|
||||
commits.append(cs_data)
|
||||
|
||||
needed_commits.discard(commit_id)
|
||||
needed_commits.remove(commit_id)
|
||||
|
||||
except Exception as e:
|
||||
log.exception(e)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue