开发者

Automate TortoiseSVN commit using cruise control

I am new to tortoise svn, can any one tell how to automate tortoisesvn's commit process using CruiseControl.NET . My attempt to do that results in an exception being thrown.

My main concern is to auto close the window that pops up when we execute t开发者_如何学Che command

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


You shouldn't use GUI tool for batch scripts. Subversion have packages for Windows that will give you powerful svn command. And you'll be able to do svn commit -m "log msg" without any windows popping up.


Here's an msbuild script you can use from ccnet that will commit, but leave a dialog up if there are errors.

<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>

I don't see a way in tortoise to enforce that the dialog will always close

/closeonend:1 auto close if no errors from here

Because of this you may want to use svn as vava suggests.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜