开发者

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

开发者 https://www.devze.com 2023-03-31 02:10 出处:网络
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

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


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.


Solved, I used THIS script for powershell

0

精彩评论

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