一、前言
ubuntu下有兩個svn用戶端:1.svn。2.Rapidsvn。 二、svn的安裝方式
安裝svn很簡單,只需要輸入命令即可安裝:sudo apt-get install subversion
網上有一種方式是自己編譯的,我試過,很容易報錯,說是缺openssl
topeet@ubuntu:~/soft/subversion-1.6.12$ sudo apt-get install subversion[sudo] password for topeet: Reading package lists... DoneBuilding dependency tree Reading state information... DoneSuggested packages: subversion-tools db4.8-utilThe following NEW packages will be installed: subversion0 upgraded, 1 newly installed, 0 to remove and 542 not upgraded.Need to get 296 kB of archives.After this operation, 1,225 kB of additional disk space will be used.Get:1 http://mirrors.163.com/ubuntu/ precise-updates/main subversion amd64 1.6.17dfsg-3ubuntu3.5 [296 kB]Fetched 296 kB in 0s (829 kB/s) Selecting previously unselected package subversion.(Reading database ... 167946 files and directories currently installed.)Unpacking subversion (from .../subversion_1.6.17dfsg-3ubuntu3.5_amd64.deb) ...Processing triggers for man-db ...Setting up subversion (1.6.17dfsg-3ubuntu3.5) ...topeet@ubuntu:~/soft/subversion-1.6.12$ lsaclocal.m4 BUGS CHANGES config.log contrib gen-make.py neon serf TRANSLATINGapr build COMMITTERS config.nice COPYING HACKING notes sqlite-amalgamation win-tests.pyapr-util build.conf confdefs.h configure doc INSTALL packages subversion wwwautogen.sh build-outputs.mk config.cache configure.ac gen-make.opts Makefile.in README tools zlibtopeet@ubuntu:~/soft/subversion-1.6.12$ svnType 'svn help' for usage.topeet@ubuntu:~/soft/subversion-1.6.12$ svn helpusage: svn <subcommand> [options] [args]Subversion command-line client, version 1.6.17.Type 'svn help <subcommand>' for help on a specific subcommand.Type 'svn --version' to see the program version and RA modules or 'svn --version --quiet' to see just the version number.Most subcommands take file and/or directory arguments, recursingon the directories. If no arguments are supplied to such acommand, it recurses on the current directory (inclusive) by default.Available subcommands: add blame (praise, annotate, ann) cat changelist (cl) checkout (co) cleanup commit (ci) copy (cp) delete (del, remove, rm) diff (di) export help (?, h) import info list (ls) lock log merge mergeinfo mkdir move (mv, rename, ren) propdel (pdel, pd) propedit (pedit, pe) propget (pget, pg) proplist (plist, pl) propset (pset, ps) resolve resolved revert status (stat, st) switch (sw) unlock update (up)Subversion is a tool for version control.For additional information, see http://subversion.tigris.org/
三、RapidSvn的安裝方式
1.直接在UBUNTU的軟體中心輸入rapidsvn即可下載
四、RapidSvn的配置方式
RapidSVN 預設配置下並沒有配置 diff 與 edit 工具,所以,如果你需要開啟某個檔案或是 diff 某個檔案,都需要自己配置相應工具的路徑。
在 Ubuntu 等機器上,可以這樣設定:點擊功能表列 ==> ‘View/Preferences…’ 來設定參數,在 ‘Programs’ 頁上可以選擇相應的程式。
官方網站上有推薦程式列表:
在 Linux 下,我們可以用 Scintilla/SciTE 作為編輯器 ( Editor ),用 nautilus 來作為瀏覽工具 ( explorer ),
diff 和 merge 工具都可以選用 kdiff3,
這些程式預設都是安裝在 /usr/bin 目錄下的,只要在 RapidSVN 的屬性設定裡連結上這些可執行檔就可以了。 五、svn命令列和RapidSvn聯合使用
RapidSvn是圖形化操作,比較人性化,容易上手,但是有些功能不支援,這個使用用命令列的svn來實現對應的功能,就能夠起到互補的作用。
參考地址:
1.ubuntu下svn圖形介面用戶端登陸svn服務
2.Linux下安裝SVN用戶端