Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVN not seeing changes

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?

like image 695
Will Avatar asked Nov 26 '25 16:11

Will


2 Answers

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.

like image 164
James Avatar answered Nov 29 '25 16:11

James


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.

like image 45
Axeman Avatar answered Nov 29 '25 16:11

Axeman