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 changes 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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With