0306 TortoiseSVN tags branches
今天sourceforge终于正常了,赶快下载is 1.3.2
tortoisesvn/TortoiseSVN-1.3.2.5840-svn
看了看 read the changelog.
TortoiseSVN 1.3.2 This is a bugfix release only.
好像都是修正了BUG的样子
今天基本SIP完成了注册、认证、语音通话,准备作个TAG,以前CVS很简单,目录上面右键CVS TAG,就把所以的文件打上TAG,
可是看到 TortoiseSVN 的界面,实在另外奇怪
文件库 从工作副本 到 URL
从此复制到文件库
文件库中最新版本 文件库中指定版本 工作副本
感觉非常奇怪,看看帮助
Subversion does not have special commands for branching or tagging, but uses so-called cheap copies instead. Cheap copies are similar to hard links in Unix, which means that instead of making a complete copy in the repository, an internal link is created, pointing to a specific tree/revision. As a result branches and tags are very quick to create, and take up almost no extra space in the repository.
5.16.1. Creating a Branch or Tag
If you have imported your project with the recommended directory structure, creating a branch or tag version is very simple:
Select the folder in your working copy which you want to copy to a branch or tag, then select the command TortoiseSVN → Branch/Tag….
The default destination URL for the new branch will be the source URL on which your working copy is based. You will need to edit that URL to the new path for your branch/tag. So instead of
http:// svn.collab .net/repos/ProjectName/trunk
you might now use something like
http:// svn. collab. net/repos/ProjectName/tags/Release_1.10
再看看中文文档
標記
另一個常見的版本控制概念, 就是 標記. 標記只是一個計劃在時間軸上的 "快照". 在 Subversion 中, 這個概念已經隨處都是了. 每一個檔案庫的修訂版, 就是檔案系統在每一次送交之後的快照.
但是呢, 人們通常會想要標記一個便於記憶的名稱, 像是 "release-1.0". 而且他們只想要的, 只是一部份檔案系統子目錄的快照而已. 要記住某一個軟體的 release-1.0 版, 對應的是修訂版 4822 裡的某個特定子目錄, 畢竟是不太容易的.
建立一個簡單的標記
再一次地, svn copy 又來解救眾生了. 如果你想要建立一個完全符合 HEAD 修訂版的 /trunk/calc 的快照, 那就建立一個它的複本:
$ svn copy http://svn.example.com/repos/trunk/calc \\
http://svn.example.com/repos/tags/calc/release-1.0 \\
-m "Tagging the 1.0 release of the \’calc\’ project."
Committed revision 351.
這個例子假設 /tags/calc 的目錄已經存在了. 在複製動作完成後, 新的 release-1.0 目錄就永遠是這個計劃的快照, 完全符合你建立複本時的 HEAD 修訂版的內容. 當然囉, 你可能想要更準確地指定你所複製的修訂版, 以免別人在你沒注意時, 又送交了幾個更動. 所以如果你知道 /trunk/calc 的 350 修訂版, 就是你想要的快照的話, 你可以藉由傳給 svn copy 命令的 -r 350 選項來指定它.
這個建立標記的步驟, 不是和我們用來建立分支的步驟是一樣的嗎? 沒錯, 事實上, 根本就是一樣的. 在 Subversion 中, 標記與分支是沒有任何分別的. 兩者都只是透過複製而建立的尋常目錄而已. 就像分支一樣, 被複製的目錄之所以為 "標記", 只是因為 人們 決定它是: 只要沒有人再送交更動到這個目錄中, 它就永遠是個快照而已. 如果有人開始送交更動進去, 它就會變成一個分支.
难怪很多时候看到人家的SVN仓库都有 TRUNK 和 TAGS 目录,原来SVN的标签就是复制到那个目录。
也难怪CHECK OUT SVN仓库总是觉得非常大,原来TAGS越多复制次数越多越恐怖
这次是把整个工作都弄进去了,下次记得只需要弄一个当前工作目录应该就可以了
历史博文
- 20081101 hips tf mp - 2009
- 20071013 变参 LINUX - 2008
- 20070130 windows linux c 编程 - 2007
- TortoiseCVS中文帮助-资源管理器和乌龟 - 2005
- 排球规则-不允许外力 排球主裁判手势 - 2005
- 方文室随记23捣莲拗麝24唐朝豪放女夏文汐 - 2005