Don't set ahead/behind on independent queues.

Change-Id: I6507896e9980eee4ac13ff8bd94f0e32947cd5d8
Reviewed-on: https://review.openstack.org/12279
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
This commit is contained in:
James E. Blair 2012-08-31 12:16:55 -07:00 committed by Jenkins
parent e048707033
commit 7524158616

View File

@ -255,7 +255,7 @@ class ChangeQueue(object):
self._jobs |= set(self.pipeline.getJobTree(project).getJobs())
def enqueueChange(self, change):
if self.queue:
if self.dependent and self.queue:
change.change_ahead = self.queue[-1]
change.change_ahead.change_behind = change
self.queue.append(change)