2010-03-25 88 views
1

我是烏龜svn的新手,任何人都可以告訴如何使用CruiseControl.NET自動化tortoisesvn的提交過程。我嘗試這樣做會導致拋出異常。使用巡航控件自動化TortoiseSVN提交

我主要關心的是自動關閉彈出的窗口中,當我們執行命令

"tortoiseproc /command: commit /path:"**********PATH********* /logmsg: 
"log msg" /closeonend:1" 

回答

5

你不應該使用批處理腳本GUI工具。 Subversion有packages for Windows這會給你強大的svn命令。你將能夠做到svn commit -m "log msg"沒有任何窗口彈出。

0

以下是您可以在ccnet中使用的msbuild腳本,它將提交,但如果出現錯誤則保留一個對話框。

<PropertyGroup> 
    <TortoisePath>C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe</TortoisePath> 
    <TortoiseCommit>&quot;$(TortoisePath)&quot; /command:commit /path:</TortoiseCommit> 
    <DbProjLocalPath>$(LocalBranchPath)\Database\DBProject</DbProjLocalPath> 
    </PropertyGroup> 
<Target Name="SvnCommitDbProj"> 
<Error Condition="!Exists($(DbProjLocalPath))" Text="Directory missing:$(DbProjLocalPath)" /> 
<Exec Command="$(TortoiseCommit)&quot;$(DbProjLocalPath)&quot;" IgnoreExitCode="true"> 

    </Exec> 
</Target> 

我沒有看到烏龜的方式來執行,該對話框會一直密切

/closeonend:1 auto close if no errorshere

正因爲如此,你可能想使用SVN作爲VAVA建議。