private function setInBranchFromAction(ReleephRequest $rq, ReleephRequestTransaction $xaction)
 {
     $action = $xaction->getMetadataValue('action');
     switch ($action) {
         case 'pick':
             $rq->setInBranch(1);
             break;
         case 'revert':
             $rq->setInBranch(0);
             break;
         default:
             $id = $rq->getID();
             $type = $xaction->getTransactionType();
             $new = $xaction->getNewValue();
             phlog(pht("Unknown discovery action '%s' for xaction of type %s " . "with new value %s mentioning %s!", $action, $type, $new, 'RQ' . $id));
             break;
     }
     return $this;
 }
 private function setInBranchFromAction(ReleephRequest $rq, ReleephRequestTransaction $xaction)
 {
     $action = $xaction->getMetadataValue('action');
     switch ($action) {
         case 'pick':
             $rq->setInBranch(1);
             break;
         case 'revert':
             $rq->setInBranch(0);
             break;
         default:
             $id = $rq->getID();
             $type = $xaction->getTransactionType();
             $new = $xaction->getNewValue();
             phlog("Unknown discovery action '{$action}' " . "for xaction of type {$type} " . "with new value {$new} " . "mentioning RQ{$id}!");
             break;
     }
 }