On 2/14/2011 7:23 PM, Ed wrote:
Hi,Can someone check if this is a bug? Script to reproduce: ~/test$ svnadmin create bar ~/test$ mkdir foo ~/test$ cd foo ~/test/foo$ svn co file:////path/to/bar ~/test/foo/bar$ echo "testing this file" > A.txt ~/test/foo/bar$ svn add A.txt ~/test/foo/bar$ svn ci A.txt -m "test" ~/test/foo/bar$ find -type f -exec sed -i 's/testing/running/g' {} \; ~/test/foo/bar$ svn status ~/test/foo/bar$ But A.txt is changed. What should happen is M A.txt What happens: Nothing. Is this what is supposed to happen?
Your script is not supposed to go into the ".svn" directories within the sandbox. You have changed the reference copy of "A.txt" in the ".svn" directory and it is likely that "svn status" isn't noticing that it no longer matches the repository. See:
http://myridia.com/dev_posts/view/687 So you would use: find// -name .svn -prune -o -type f -exec sed -i 's/testing/running/g' {} \; -- David Chapman [email protected] Chapman Consulting -- San Jose, CA
