Check if parent commit is already merged into base branch.
Check if parent commit is already merged into base branch.

Fixes bug querying commits that were merged on a different branch
When there's a branch split, a commit that was merged on the latest
branch is also on the release branch. There is logic to check if
the parent commit is OPEN or not. Querying for that commit on the
release (relase-fips860) branch fails as Gerrit stored it on the
latest(master-p8).

Change-Id: I62544233069e3513401884066809f2b9cdf8151a
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29032
Tested-by: Jenkins Server <8e3f934e4c44875bc48d33da3ea13d93ba9a233f@us.ibm.com>
Reviewed-by: Andrew J. Geissler <c46de238cd554860f0bd4010b1729f1323facd9c@us.ibm.com>
Reviewed-by: Martin Gloff <df0a4963746ae04ab678d064fccc7ee68adfd751@us.ibm.com>
Reviewed-by: Thi N. Tran <25a2bca7ae5a8ea03be09ca8d282480c08c13052@us.ibm.com>
Tested-by: FSP CI Jenkins <aa9e4d9ac7cd25905e9c0dd36d4150516e73dd86@us.ibm.com>
Reviewed-by: Daniel M. Crowell <912029ca9254ac7b5854e56910561d682e1fa2d0@us.ibm.com>

Over-enthusiastic/hostboot,Over-enthusiastic/hostboot,Over-enthusiastic/hostboot,Over-enthusiastic/hostboot,Over-enthusiastic/hostboot