0

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.

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

Any help would be appreciated. Thanks.

Adam Cobb
  • 894
  • 4
  • 14
  • 33

2 Answers2

1

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>
Adam Cobb
  • 894
  • 4
  • 14
  • 33
0

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

<svn command="revert" ... />
Andrey Adamovich
  • 20,285
  • 14
  • 94
  • 132