开发者

SVN revert from within a NAnt script?

开发者 https://www.devze.com 2022-12-19 06:16 出处:网络
I thought this would be a simple task, but I\'m currently unable to get it to work. There are built in functions such as <svn-update> etc. But not for revert it seems?

I thought this would be a simple task, but I'm currently unable to get it to work. There are built in functions such as <svn-update> etc. But not for revert it seems?

I have tried using the following but get an error that I have no supplied enough parameters.

开发者_StackOverflow中文版<svn command="revert" destination="${root}" uri="${build.repos}" username="${build.user}" password="${build.pwd}"></svn>

Any help would be appreciated. Thanks.


Got it working by using the following -

<svn command="revert" destination="${root}" uri="${build.repos}" username="${build.user}" password="${build.pwd}">
    <arg line="-R"/>
    <arg line="revert"/>
    <arg line="${root}"/>
</svn>


There is a generic svn command where you can specify any command including revert:

<svn command="revert" ... />
0

精彩评论

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