3

I need to set from command line (cmd or powershell) some svn keywords recursively on ALL .h and .cpp files. How can I do it? I tried

svn propset svn:keywords "My keywords" -R *.cpp *.h

without success, it says me:

svn: warning: '.cpp' is not under version control

svn: warning: '.h' is not under version control

Community
  • 1
  • 1
Stefano
  • 3,213
  • 9
  • 60
  • 101

2 Answers2

2

You can use find and xargs for the purpose:

find . -name \*.cpp -or -name \*.h -print0 | xargs -0 svn propset svn:keywords "My keywords"

EDIT I see that you are on Windows. I don't know what's the find/xargs equivalent on windows but you could install Cygwin and get these utilities, if needed.

Chaitanya Gupta
  • 4,043
  • 2
  • 31
  • 41
1

Solved, I used THIS script for powershell

Stefano
  • 3,213
  • 9
  • 60
  • 101