method log documentation in bbn\Version\Svn

function($path = '/', $num = 5) { if ( $this->has_svn ){ $this->auth(); return svn_log($this->url.$path); //return svn_status($path, SVN_NON_RECURSIVE|SVN_ALL); } else{ if ( !$num ){ $num = $this->last($this->url.$path); } ob_start(); header('Content-Type: text/plain; charset=UTF-8'); print(shell_exec("svn log -l $num ".$this->args())); $st = ob_get_contents(); ob_end_clean(); $log = new \SimpleXMLElement($st); $r = []; //bbn\X::hdump($st); foreach ( $log->logentry as $l ){ $r[(int)$l['revision']] = [ 'author' => (string)$l->author, 'date' => date('Y-m-d H:i:s', strtotime($l->date)), 'msg' => (string)$l->msg ]; } return $r; } }

BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.