##// END OF EJS Templates
events: send pushed commit ids in order
dan -
r782:1a5a75e1 default
parent child
Show More
@@ -47,7 +47,7 def _commits_as_dict(commit_ids, repos):
47 if not commit_ids:
47 if not commit_ids:
48 return []
48 return []
49
49
50 needed_commits = set(commit_ids)
50 needed_commits = list(commit_ids)
51
51
52 commits = []
52 commits = []
53 reviewers = []
53 reviewers = []
@@ -57,7 +57,7 def _commits_as_dict(commit_ids, repos):
57
57
58 vcs_repo = repo.scm_instance(cache=False)
58 vcs_repo = repo.scm_instance(cache=False)
59 try:
59 try:
60 for commit_id in list(needed_commits):
60 for commit_id in needed_commits:
61 try:
61 try:
62 cs = vcs_repo.get_changeset(commit_id)
62 cs = vcs_repo.get_changeset(commit_id)
63 except CommitDoesNotExistError:
63 except CommitDoesNotExistError:
@@ -78,7 +78,7 def _commits_as_dict(commit_ids, repos):
78 repo.repo_name)
78 repo.repo_name)
79 commits.append(cs_data)
79 commits.append(cs_data)
80
80
81 needed_commits.discard(commit_id)
81 needed_commits.remove(commit_id)
82
82
83 except Exception as e:
83 except Exception as e:
84 log.exception(e)
84 log.exception(e)
General Comments 0
You need to be logged in to leave comments. Login now