Annotate all canMerge calls with event id
The canMerge method is called without the event id from a few places. Change-Id: I3233bd840dd0cc10817077c081c52852352df2ff
This commit is contained in:
parent
e4a207e5c9
commit
591ce11e8c
|
@ -92,7 +92,8 @@ class DependentPipelineManager(SharedQueuePipelineManager):
|
|||
change_queue))
|
||||
continue
|
||||
source = other_change.project.source
|
||||
if source.canMerge(other_change, self.getSubmitAllowNeeds()):
|
||||
if source.canMerge(other_change, self.getSubmitAllowNeeds(),
|
||||
event=event):
|
||||
log.debug(" Change %s needs %s and is ready to merge",
|
||||
other_change, change)
|
||||
to_enqueue.append(other_change)
|
||||
|
@ -168,7 +169,8 @@ class DependentPipelineManager(SharedQueuePipelineManager):
|
|||
log.debug(" Needed change is already ahead in the queue")
|
||||
continue
|
||||
if needed_change.project.source.canMerge(
|
||||
needed_change, self.getSubmitAllowNeeds()):
|
||||
needed_change, self.getSubmitAllowNeeds(),
|
||||
event=event):
|
||||
log.debug(" Change %s is needed", needed_change)
|
||||
if needed_change not in changes_needed:
|
||||
changes_needed.append(needed_change)
|
||||
|
|
Loading…
Reference in New Issue