events: fix bug with _commits_as_dict which was returning only

even commits
This commit is contained in:
Daniel Dourvaris 2016-09-14 23:03:34 +03:00
parent 8d9db09b41
commit ff8a75d42e

View file

@ -57,7 +57,8 @@ def _commits_as_dict(commit_ids, repos):
vcs_repo = repo.scm_instance(cache=False)
try:
for commit_id in needed_commits:
# use copy of needed_commits since we modify it while iterating
for commit_id in list(needed_commits):
try:
cs = vcs_repo.get_changeset(commit_id)
except CommitDoesNotExistError: