Initial code to support squash merge in PQM.