Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set svn keywords recursively on *.cpp and *.h files

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

like image 881
Stefano Avatar asked Dec 05 '25 01:12

Stefano


2 Answers

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.

like image 69
Chaitanya Gupta Avatar answered Dec 06 '25 16:12

Chaitanya Gupta


Solved, I used THIS script for powershell

like image 41
Stefano Avatar answered Dec 06 '25 15:12

Stefano



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!