程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 網頁編程 >> PHP編程 >> 關於PHP編程 >> PHP編寫的SVN類

PHP編寫的SVN類

編輯:關於PHP編程

<?


     SVN_USERNAME = "robot"
     SVN_PASSWORD = "robot2013"
     SVN_CONFIG_DIR = "/var/tmp/"
       ls( = "sudo svn ls " .  = self::runCmd (  =  ( "<br />",  ( ( , 'non-existent in that revision'  "<br />" .  . "<br />" . 
       (, ,  = "sudo svn cp   -m ''" = self::runCmd (  =  ( "<br />",  ( ( , 'Committed revision'  "<br />" .  . "<br />" . 
       delete(,  = "sudo svn del  -m ''" = self::runCmd (  =  ( '<br />',  ( ( , 'Committed revision'  "<br />" .  . "<br />" . 
       move(, ,  = "sudo svn mv   -m ''" = self::runCmd (  =  ( '<br />',  ( ( , 'Committed revision'  "<br />" .  . "<br />" . 
       (,  = "sudo svn mkdir  -m ''" = self::runCmd (  =  ( '<br />',  ( ( , 'Committed revision'  "<br />" .  . "<br />" . 
       diff(,  = self::runCmd ( "sudo svn diff  "  ( '<br />', 
       checkout(,  = "cd  && sudo svn co " = self::runCmd (  =  ( '<br />',  ( ( , 'Checked out revision'  "<br />" .  . "<br />" . 
       update( = "cd  && sudo svn up" = self::runCmd (  =  ( '<br />',  ( "/[0-9]+/", ,  (!  [0] [0 "<br />" .  . "<br />" .   [0] [0
       merge(, ,  = "cd  && sudo svn merge -r1: " =  ( '<br />', self::runCmd (  ( ( , 'Text conflicts' 'Command: ' .  . '<br />' .  
       commit(,  = "cd  && sudo svn commit -m''" =  ( '<br />', self::runCmd (  ( ( , 'Committed revision' ) ||  (   
       getStatus( = "cd  && sudo svn st" self::runCmd ( 
       hasConflict( = self::getStatus (  (    (  (  (  ), 0, 1 ) == 'C' || ( (  (  ), 0, 1 ) == '!'  
       getLog( = "sudo svn log  --xml" = self::runCmd (   ( '', 
       getPathRevision( = "sudo svn info  --xml" = self::runCmd (  =  ( '',  =  SimpleXMLElement (  ( ->entry [0]->attributes ()   =>  (  == 'revision' 
       getHeadRevision( = "cd  && sudo svn up" = self::runCmd (  =  ( '<br />',  ( "/[0-9]+/", ,  (!  [0] [0 "<br />" .  . "<br />" .   [0] [0
       getFileFirstVersion( = "sudo svn log {}" = self::runCmd (  , "|grep -i ^r[0-9]* |awk  '{print $1}'"((  ("r", '', [()-1
       getChangedFiles(, ,  =  = "|grep -i ^Index:|awk -F : '{print $2}'" = "svn diff -r {}:{} " = self::runCmd (  , = (,  = "svn diff -r {}:{} "; 
         = self::runCmd (  , = (,  (
       getChangedInfo( , ,  = "sudo svn diff -r {}:{} " = self::runCmd (  
       getFileContent(,  = "sudo svn cat -r {} " = self::runCmd (  
       runCmd( ,  ="" = ' --username ' . self::SVN_USERNAME . ' --password ' . self::SVN_PASSWORD . ' --no-auth-cache --non-interactive --config-dir ' . self::SVN_CONFIG_DIR . '.subversion' (  .  . " 2>&1" . ,  

 

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved