0、關聯知識________________________________________
SVN 進階用法請參考附件,或http://wenku.baidu.com/view/61622faef524ccbff1218487.html
SCM軟體配置管理系統
subversion(簡稱svn)sub 地下、替補、子的意思
CVS(Concurrent Versions System)
www.tigris.org(底格裡斯河,fertile valley肥沃谷底,名字很有創意,不要在乎别人的看法,要個性,比如我的timeriver,哈哈)
Open Source Software Engineering Tools
有自主開發的如http://subversion.tigris.org/
有連結别人的如http://subversion.tigris.org/會跳轉到http://subversion.apache.org
1、svn用戶端(圖形界面和指令行界面)________________________________________
1.1、安裝(官網下載下傳):
預設隻安裝圖形界面的,指令行界面的可以選擇,圖形界面的功能完全包含指令界面的指令,
1.2、建立branch/sandbox(圖形界面下執行其他非常用指令的功能亦如此):
右擊項目-->tortoiseSVN-->Repo-browser-->在左側項目資源上右擊-->選擇copy to
-->在彈出的url框中輸出想要建的分支路徑即可比如https://.../svn/repos/lming/sandbox/ll-891
2、eclipse-svn插件________________________________________
路徑:windows-->preference-->Team-->SVN及其下面的子菜單
2.1、插件有兩種:Subclipse, Subversive
Subclipse是SVN直接支援的項目(推薦,與TortoiseSVN更接近), 首頁http://subclipse.tigris.org/
Subversive最先是由第三方公司Polarion開發, 率先成為了Eclipse子項目,或許是eclipse與svn的某些協定出現了分歧,首頁http://www.eclipse.org/subversive/
2.2、安裝Subclipse插件
www.tigris.org(底格裡斯河,fertile valley肥沃谷底,名字很有創意,不要在乎别人的看法,要個性,比如我的timeriver,哈哈)
打開http://subclipse.tigris.org/,點選download and install打開新頁面,有兩種方式:
2.2.1,Eclipse update site URL: http://subclipse.tigris.org/update_1.8.x
eclispe下:Help-->Install New Software, 或者 Help-->Eclipse Market Place
2.2.2,Zipped downloads: http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=2240
2.2.2.1,eclipse3.4以後的版本,直接把加壓的site-1.8.18檔案夾,複制到eclipse\dropins,重新開機即可,或eclipse.exe -clean
2.2.2.2,links方式需要删除site.xml否則會認為是網絡安裝
2.2.2.3,也可以用Help-->Install New Software離線安裝zip的方式
安裝後可以在以下三個地方找到:
help -> about eclipse -> installation details -> installed software
Window-->Preferences-->Team-->SVN
Window-->open perspective
隻好上網查了下,發現3.4版本直接把插件檔案夾拷貝到dropins目錄即可,啟動eclipse,發現插件已經安裝成功。
svn安裝後有兩種連接配接器可選:SVN Interface/connector : SVNKit(推薦,pure-java實作),JavaHL,單擊左側SVN菜單,可在右側得到顯示并設定。
2.2、修改插件的賬戶密碼:
2.2.1如果是用的JavaHL, 找到以下目錄并删除目錄下的檔案.
C:\"Documents and Settings"\[YourUserName]\"Application Data"\Subversion"\auth
2.2.2如果你用的SVNKit, 找到以下目錄并删除.keyring檔案.
[eclipse_home]\"configuration"\org.eclipse.core.runtime
2.2.3重新通過Subclipse通路svn,輸入新的帳号即可。
或者直接删除svn插件
2.3、删除svn插件
help -> about eclipse -> installation details -> installed software -> 找到svn -> uninstall
2.4在工程樹形界面後方顯示版本号,但不顯示svn送出人(必須用svn下載下傳才行,用TortoiseSVN永遠不會顯示。)
Window-->Preferences-->Team-->SVN-->Lable decorations
點選右側text decorations頁籤
檔案格式:{added_flag}{dirty_flag}{name} {revision} {date} {author}
檔案夾修飾:{external_flag}{added_flag}{dirty_flag}{name}
項目修飾:{dirty_flag}{name} [{url_short}]