[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn status comes out empty

From: David Chapman <dcchapman_at_acm.org>
Date: Mon, 14 Feb 2011 20:04:40 -0800

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         dcchapman_at_acm.org
     Chapman Consulting -- San Jose, CA
Received on 2011-02-15 05:05:44 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.