odez213
odez213

Reputation: 723

How to revert files with specific extension in svn through command line?

In svn I am trying to revert all txt files recursively through command line.

Upvotes: 2

Views: 2117

Answers (2)

odez213
odez213

Reputation: 723

After lots of fiddling with command line I finally got it. The solution is as follow:

for /r %WorkingCopy% %%R in (*.txt) do if exist "%%R" (svn revert %%R)

Upvotes: 1

jncraton
jncraton

Reputation: 9132

This should do what you are asking:

svn revert *.txt

Upvotes: 2

Related Questions