Reputation: 1622
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?
Upvotes: 2
Views: 313
Reputation: 7198
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.
Upvotes: 16
Reputation: 29854
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.
Upvotes: 3
Reputation: 3142
It could have happened that your perl script changed the subversion files...
Upvotes: 0