original link: http://www.jianshu.com/p/c81712ecccb8
Pre-upgrade SVN version 1.7.20 after upgrade 1.9.2
Steps:
1. Download the latest version of SVN, Link: http://www.wandisco.com/subversion/download#osx
Once you have completed your personal information, you will be sent the download file to your email address.
2. Double-click to install, then all the way without brain installation, note the last step
3. The final step in the installation is to add the SVN address to the PATH variable
To add a method:
(1) $ cd ~
(2) touch. Bash_profile (Create. bash_profile file, if any, skip)
(3) Open-e bash_profile (open file)
(4) Add export Path=/opt/subversion/bin to the file: $PATH
(5) Close after saving
(6) source. Bash_profile (update bash environment variables)
4. Run SVN--version to see if the update was successful
5. Modify the default SVN path for Xcode
(1) cd/applications/xcode.app/contents/developer/usr/bin/
#进入xcode存放svn命令的子目录
(2) mkdir backupsvn #创建备份目录
(3) MV svn* backupsvn/#把旧的svn相关文件移动到备份目录
(4) Ln-s/opt/subversion/bin/svn*./#把新的SVN文件复制到当前目录
My Xcode also has a problem is that after editing the file, there is no change in the file to display the M identifier, quite inconvenient, the following command to solve the problem:
Defaults Write COM.APPLE.XCODEXCSUBVERSIONTOOLPATH/USR/LOCAL/BIN/SVN
(You can set the path to XCode's subversion client by setting Xcsubversiontoolpath)
SVN upgrade (MAC)