Farbflash projects: Imaging lingo table | 3-D scene list | Find all | Handler menu | Lingo message window

Ignore:
Timestamp:
11/21/08 12:15:57 (4 years ago)
Author:
alex
Message:

added revision number support to the svn update functions. now a specific revision number can be specified for the update, thus allowing 'downgrades'.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lingosource/castlib1/svn_Utilities.ls

    r194 r198  
    24572457-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
    24582458 
    2459 on mSVN_Update_SelectedCastlib me, chooseNewPath, onlyUpdate_SVN_WorkingFolder, selectionList, dontShowAlert 
     2459on mSVN_Update_SelectedCastlib me, chooseNewPath, onlyUpdate_SVN_WorkingFolder, selectionList, revisionNumber, dontShowAlert 
    24602460   
    24612461  actCL = the activecastlib 
     
    26052605  mDisplayWaitStatusText me, "SVN update..." -- && newpathUnix 
    26062606   
     2607  revisionNumber = string(revisionNumber) 
     2608  if length(revisionNumber) < 1 then revisionNumber = "HEAD" 
     2609   
    26072610  repeat with castlibPaths in castlibPathList 
    26082611     
    2609     theresult = mDoShellCmd(me, svnBinary && "update" && QUOTE & castlibPaths[#newpathUnix] & QUOTE, RETURN, 0, 1) 
     2612    theresult = mDoShellCmd(me, svnBinary && "update" && "-r" && revisionNumber && QUOTE & castlibPaths[#newpathUnix] & QUOTE, RETURN, 0, 1) 
    26102613     
    26112614    if count(theresult) < 1 then 
     
    26692672-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
    26702673 
    2671 on mSVN_Update_CurrentMovie_Binaries me, chooseNewPath, onlyUpdate_SVN_WorkingFolder, dontShowAlert 
     2674on mSVN_Update_CurrentMovie_Binaries me, chooseNewPath, onlyUpdate_SVN_WorkingFolder, revisionNumber, dontShowAlert 
    26722675   
    26732676  workingCopies = value(getPref("svn_wCopies_paths_Binary.txt")) 
     
    27152718  mDisplayWaitStatusText me, "SVN update:" && workingFolderUnix 
    27162719   
    2717   theresult = mDoShellCmd(me, svnBinary && "update" && QUOTE & workingFolderUnix & QUOTE, RETURN, 0, 1) 
     2720  revisionNumber = string(revisionNumber) 
     2721  if length(revisionNumber) < 1 then revisionNumber = "HEAD" 
     2722  theresult = mDoShellCmd(me, svnBinary && "update" && "-r" && revisionNumber && QUOTE & workingFolderUnix & QUOTE, RETURN, 0, 1) 
    27182723   
    27192724  if count(theresult) > 0 then 
Note: See TracChangeset for help on using the changeset viewer.