[pergola] track merge implemented as function