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.
:copy Brings up the branch/tag dialog. The /path is the working copy 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 copy 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"
温馨提示:答案为网友推荐,仅供参考