I just ran a perl script to replace all occurances of one word for another for my whole project.
ie:
perl -e "s/OLD/NEW/g;" -pi $(find ./ -type f)
I want to commit these changes to subversion, but when i run "svn status", none of the modified files appear on the list.
The same thing occurs in TortoiseSVN using the "Check for modifications".
Did this perl script bypass some method that SVN uses to check for c开发者_StackOverflowhanges somehow?
Your script operated on the local svn backup copies in the .svn folder. That's what svn uses to compare changes.
Update: the newer versions of subversion don't keep a local .svn folder.
You need to make that command:
perl -e "s/OLD/NEW/g;" -pi $(find ./ -type f | grep -v '/\.svn/' )
That grep
command is so common on my commands that grep through subversion directories.
It could have happened that your perl script changed the subversion files...
精彩评论