導航:首頁 > 程序命令 > svntag命令行

svntag命令行

發布時間:2022-06-21 04:06:16

Ⅰ 用svn怎麼打tag,是嗎命令是什麼。「打tag」怎麼理解。。。

看到第13項branch/tag了沒?我的理解就是在保存原有分支的基礎上新建立一個分支,相當於2個子版本,建立時候可以寫上這個版本簡介,原因等

Ⅱ SVN中tag和branch的區別

從svn命令操作的角度,branches和tags是一樣的,都是分支標記功能,兩者的區別主要在於默認的使用用途。
一般來說:
1、branches下用於存放「分支」,比如用於測試的分支、用於不同版本開發的分支、用於缺陷處理的分支等等,「分支」下存放的內容是會繼續修改的;
2、tags下用於存放「標記」,比如某個發布版本的標記,「標記」下存放的內容通常來說是固定不變的。

比如:開發進行到1.0版本測試完成,要進行對外軟體發布了,同時項目組後續會拆分成兩個小組,一個小組負責1.0版本的BUG維護,另一個小組開始在1.0基礎上進行2.0版本的開發。此時,就可以把當前版本從trunk拉到tags下一份,標記為release1_0,然後對外發布時就從這個文件夾獲取;然後再把當前版本拉到branches下一份,標記為bugfix1_0,負責1.0版維護的小組以後就在這個文件夾下進行修復工作,負責2.0版開發的小組繼續在trunk下工作。

從配置管理的角度來看,打基線就是把庫中的某些內容打個標記,就是拖到tags文件夾下。

Ⅲ SVN 如何打TAG

教你如何使用svnClient打tag~給公司人用的!


1.進入代碼主目錄

5.修改tags名稱,最好用一有標志意思的名稱。


6.注意查看,請謹慎操作!

Ⅳ svn tag是什麼

svn的存儲目錄結構一般建議在根目錄下建立trunk、branches、tags這三個文件夾,trunk用於平時的正常工作,branches用於存放各種分支,tags用於存放各種發布版本或某狀態的快照

tags本質上和branches是一樣的,都是一種分支,只是習慣上branches下面的東西會被修改、合並,而tags下面的東西則作為某階段的狀態保存不動

一般tags下面經常放的都是各個發布版本,如Release0.91、Release1.23等

Ⅳ svn 命令行怎麼解決沖突

解決版本沖突的命令。在沖突解決之後,需要使用svn resolved來告訴subversion沖突解決,這樣才能提交更新。沖突發生時,subversion會在Work Copy中保存所有的目標文件版本(上次更新版本、當前獲取的版本,即別人提交的版本、自己更新的版本、目標文件。假設文件名是sandwich.txt,對應的文件名分別是:sandwich.txt.r1、
sandwich.txt.r2、sandwich.txt.mine、sandwich.txt)。同時在目標文件中標記來自不同用戶的更改。
解決沖突的辦法:
- 手動解決:沖突發生時,通過和其他用戶溝通之後,手動更新目標文件。然後執行svn resolved filename來解除沖突,最後提交。
- 放棄自己的更新,使用別人的更新。使用最新獲取的版本覆蓋目標文件,執行svn resolved filename並提交。
- 放棄自己的更新,使用svn revert,然後提交。在這種方式下不需要使用svn resolved。
對於svn resolved命令需要非常小心,必須是非常確定沖突已經解決才能使用。否則,會導致Subversion以為沖突解決,而使代碼庫不正確。 解決沖突詳細文檔:
http://svnbook.subversion.org.cn/1.2/svn.tour.cycle.html#svn.tour.cycle.resolve 解決沖突(合並別人的修改)
我們可以使用svn status -u來預測沖突,當你運行svn update一些有趣的事情發生了:
$ svn update U INSTALL G README C bar.c
Updated to revision 46.
U和G沒必要關心,文件干凈的接受了版本庫的變化,文件標示為U表明本地沒有修改,文件已經根據版本庫更新。G標示合並,標示本地已經修改過,與版本庫沒有重迭的地方,已經合並。
但是C表示沖突,說明伺服器上的改動同你的改動沖突了,你需要自己手工去解決。 當沖突發生了,有三件事可以幫助你注意到這種情況和解決問題: ● Subversion列印C標記,並且標記這個文件已沖突。
● 如果Subversion認為這個文件是可合並的,它會置入沖突標記—特殊的橫線分開沖突的「兩面」—在文件里可視化的描述重疊的部分(Subversion使用svn:mime-type屬性來決定一個文件是否可以使用上下文的,以行為基礎合並,更多信息可以看「svn:mime-type」一節)。
● 對於每一個沖突的文件,Subversion放置三個額外的未版本化文件到你的工作拷貝:
● filename.mine
● 你更新前的文件,沒有沖突標志,只是你最新更改的內容。(如果Subversion認為這個文件不可以合並,.mine文件不會創建,因為它和工作文件相同。) ● filename.rOLDREV

Ⅵ svn的tag和branch的區別

在SVN中Branch/tag在一個功能選項中,在使用中也往往產生混淆。

在實現上,branch和tag,對於svn都是使用實現的,所以他們在默認的許可權上和一般的目錄沒有區別。至於何時用tag,何時用branch,完全由人主觀的根據規范和需要來選擇,而不是強制的(比如cvs)。

一般情況下,tag,是用來做一個milestone的,不管是不是release,都是一個可用的版本。這里,應該是只讀的。更多的是一個顯示用的,給人一個可讀(readable)的標記。

Ⅶ 如何用命令行實現TortoiseSVN命令

TortoiseSVN是一個GUI客戶端,這個自動化指導為你展示了讓TortoiseSVN對話框顯示並收集客戶輸入,如果你希望編寫不需要輸入的腳本,你應該使用官方的Subversion命令行客戶端。
TortoiseSVN的GUI程序叫做TortoiseProc.exe。所有的命令通過參數/command:asdf指定,其中asdf是必須的命令名(命令名詳見」表 1. 有效命令及選項列表「)。大多數此類命令至少需要一個路徑參數,使用/path:"some\path"指定。在下面的命令表格中,命令引用的是/command:asdf參數,餘下的代表了/path:"some\path"參數。
因為一些命令需要一個目標路徑的列表(例如提交一些特定的文件),/path參數可以接收多個路徑,使用*分割。
TortoiseSVN 使用臨時文件在 shell 擴展和主程序之間傳遞多個參數。從 TortoiseSVN 1.5.0 開始,廢棄/notempfile參數,不再需要增加此參數。
The progress dialog which is used for commits, updates and many more commands usually stays open after the command has finished until the user presses theOK button. This can be changed by checking the corresponding option in the settings dialog. But using that setting will close the progress dialog, no matter if you start the command from your batch file or from the TortoiseSVN context menu.
To specify a different location of the configuration file, use the parameter /configdir:"path\to\config\directory". This will override the default path, including any registry setting.
如果想在進度對話框執行完畢後自動關閉,而又不必設置永久性的參數,可以傳遞/closeonend參數。
/closeonend:0 不自動關閉對話框
/closeonend:1 如果沒發生錯誤則自動關閉對話框
/closeonend:2 如果沒發生錯誤和沖突則自動關閉對話框
/closeonend:3如果沒有錯誤、沖突和合並,會自動關閉
下面的列表列出了所有可以使用TortoiseProc.exe訪問的命令,就像上面的描述,必須使用/command:asdf的形式,在列表中,因為節省空間的關系省略了/command的前綴。

表 1. 有效命令及選項列表

命令
描述

:about 顯示關於對話框。如果沒有給命令也會顯示。
:log 打開日誌對話框,/path 指定了顯示日誌的文件或目錄,另外還有三個選項可以設置: /startrev:xxx、/endrev:xxx和/strict
:checkout 打開檢出對話框,/path指定了目標路徑,而/url制定了檢出的URL。
:import 打開導入對話框,/path 指定了數據導入路徑。
:update 將工作副本的/path更新到HEAD,如果給定參數/rev,就會彈出一個對話框詢問用戶需要更新到哪個修訂版本。為了防止指定修訂版本號/rev:1234的對話框,需要選項/nonrecursive和/ignoreexternals。
:commit 打開提交對話框,/path 指定了目標路徑或需要提交的文件列表,你也可以使用參數 /logmsg 給提交窗口傳遞預定義的日誌信息,或者你不希望將日誌傳遞給命令行,你也可以使用/logmsgfile:path,path 指向了保存日誌信息的文件。為了預先填入bug的ID(如果你設置了集成bug追蹤屬性),你可以使用/bugid:"the bug id here"完成這個任務。
:add 將/path的文件添加到版本控制 。
:revert 恢復工作副本的本地修改,/path說明恢復哪些條目。
:cleanup 清理中斷和終止的操作,將工作副本的/path解鎖。
:resolve 將/path指定文件的沖突標示為解決,如果給定/noquestion,解決不會向用戶確認操作。
:repocreate 在/path創建一個版本庫。
:switch 打開選項對話框。/path 指定目標目錄。
:export 將/path的工作副本導出到另一個目錄,如果/path指向另一個未版本控制目錄,對話框會詢問要導出到/path的URL。
:merge Opens the merge dialog. The /path specifies the target directory. For merging a revision range, the following options are available: /fromurl:URL, /revrange:string. For merging two repository trees, the following options are available: /fromurl:URL, /tourl:URL, /fromrev:xxx and /torev:xxx. These pre-fill the relevant fields in the merge dialog.
:mergeall Opens the merge all dialog. The /path specifies the target directory.
: Brings up the branch/tag dialog. The /path is the working to branch/tag from. And the /url is the target URL. You can also specify the /logmsg switch to pass a predefined log message to the branch/tag dialog. Or, if you don't want to pass the log message on the command line, use /logmsgfile:path, where path points to a file containing the log message.
:settings 打開設置對話框。
:remove 從版本控制里移除/path中的文件。
:rename 重命名/path的文件,會在對話框中詢問新文件,為了防止一個步驟中詢問相似文件,傳遞/noquestion。
:diff Starts the external diff program specified in the TortoiseSVN settings. The /path specifies the first file. If the option /path2 is set, then the diff program is started with those two files. If /path2 is omitted, then the diff is done between the file in /path and its BASE. To explicitly set the revision numbers use /startrev:xxx and /endrev:xxx. If/blame is set and /path2 is not set, then the diff is done by first blaming the files with the given revisions.
:showcompare
Depending on the URLs and revisions to compare, this either shows a unified diff (if the option unified is set), a dialog with a list of files that have changed or if the URLs point to files starts the diff viewer for those two files.
The options url1, url2, revision1 and revision2 must be specified. The options pegrevision, ignoreancestry, blame and unified are optional.

:conflicteditor Starts the conflict editor specified in the TortoiseSVN settings with the correct files for the conflicted file in /path.
:relocate 打開重定位對話框,/path指定了重定位的工作副本路徑。
:help 打開幫助文件
:repostatus 打開為修改檢出對話框,/path 指定了工作副本目錄。
:repobrowser Starts the repository browser dialog, pointing to the URL of the working given in /path or /path points directly to an URL. An additional option /rev:xxx can be used to specify the revision which the repository browser should show. If the /rev:xxx is omitted, it defaults to HEAD. If /path points to an URL, the /projectpropertiespath:path/to/wcspecifies the path from where to read and use the project properties.
:ignore 將/path中的對象加入到忽略列表,也就是將這些文件添加到 svn:ignore 屬性。
:blame
為 /path 選項指定的文件打開追溯對話框。
如果設置了 /startrev 和 /endrev 選項,不會顯示詢問追溯范圍對話框,直接使用這些選項中的版本號。
如果設置了 /line:nnn 選項,TortoiseBlame 會顯示指定行數。
也支持 /ignoreeol,/ignorespaces 和 /ignoreallspaces 選項。

:cat 將/path指定的工作副本或URL的文件保存到/savepath:path,修訂版本號在/revision:xxx,這樣可以得到特定修訂版本的文件。
:createpatch 創建/path下的補丁文件。
:revisiongraph 顯示/path目錄下的版本變化圖。
:lock Locks a file or all files in a directory given in /path. The 'lock' dialog is shown so the user can enter a comment for the lock.
:unlock Unlocks a file or all files in a directory given in /path.
:rebuildiconcache Rebuilds the windows icon cache. Only use this in case the windows icons are corrupted. A side effect of this (which can't be avoided) is that the icons on the desktop get rearranged. To suppress the message box, pass /noquestion.
:properties 顯示 /path 給出的路徑之屬性對話框。

Examples (which should be entered on one line):
TortoiseProc.exe /command:commit
/path:"c:\svn_wc\file1.txt*c:\svn_wc\file2.txt"
/logmsg:"test log message" /closeonend:0

TortoiseProc.exe /command:update /path:"c:\svn_wc\" /closeonend:0

TortoiseProc.exe /command:log /path:"c:\svn_wc\file1.txt"
/startrev:50 /endrev:60 /closeonend:0

Ⅷ SVN命令行怎麼用

SVN Commit
"C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe" /command:commit /path:%f /notempfile /closeonend
SVN CommitAll
"C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe" /command:commit /path:* /notempfile /closeonend
SVN Diff
"C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe" /command:diff /path:%f /notempfile /closeonend
SVN Log
"C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe" /command:log /path:%f /notempfile /closeonend
SVN Update
"C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe" /command:update /path:%f /notempfile /closeonend
SVN UpdateAll
"C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe" /command:update /path:* /notempfile /closeonend
Source Monitor
D:\SourceMonitor\SourceMonitor /DC++ %f

Ⅸ windows 怎麼用svn命令

1、Windows下命令行工具:

發現原來安裝的tortoisesvn已經集成到shell中,不能在命令行下使用。

下載Apache Subversion command line tools,這是一個可以在cmd下使用的命令行工具,解壓後把裡面bin目錄這個路徑添加到環境變數的path,這樣在cmd下就可以使用了,和linux下使用svn的習慣一樣了。

目錄約定:

Ⅹ Svn中Branch和Tag的區別是什麼

在SVN中Branch/tag在一個功能選項中,在使用中也往往產生混淆。

在實現上,branch和tag,對於svn都是使用實現的,所以他們在默認的許可權上和一般的目錄沒有區別。

至於何時用tag,何時用branch,完全由人主觀的根據規范和需要來選擇,而不是強制的(比如cvs)。

閱讀全文

與svntag命令行相關的資料

熱點內容
小程序源碼雲開發無需伺服器 瀏覽:732
文件夾擁有者未知 瀏覽:870
天勤數據結構pdf 瀏覽:272
廣義的機器人編程語言有 瀏覽:671
python爬蟲url怎麼看 瀏覽:713
tar解壓成功返回值非0 瀏覽:236
漢語大詞典pdf 瀏覽:211
cad如何快速統計數量命令 瀏覽:912
文華量化交易策略源碼 瀏覽:932
三好程序員經典語錄 瀏覽:811
陝西伺服器託管大帶寬雲空間 瀏覽:278
怎麼整理手機app里的網址 瀏覽:563
程序員必讀書櫃 瀏覽:541
如何舉報非法網站和游戲伺服器 瀏覽:306
安卓怎麼看在哪個地方呆了多久 瀏覽:573
120萬程序員徵婚 瀏覽:249
對稱可搜索加密演算法 瀏覽:649
uc如何免費解壓 瀏覽:654
一本電子書怎麼編譯目錄 瀏覽:256
手機壓縮軟體官方下載 瀏覽:220