[ILUG] Subversion not seeing working copy changes
Niall O Broin
niall at magicgoeshere.com
Thu Oct 22 20:32:32 IST 2009
On 22 Oct 2009, at 15:35, Éibhear wrote:
> Hi Sean,
>
> Your problem is in your find command:
>
> find . -type f...
>
> will find *all* files, including all the files in the .svn
> directories.
> The sed command will be executed on both the working copy files, and
> the
> meta-data versions that subversion keeps for local comparison
> purposes.
> Therefore, svn doesn't see that the files have changed, as the
> "backups"
> it maintains are changed in exactly the same way.
>
> You'll need to exclude all files in all .svn directories from your
> find
> command. Off the top of my head, I don't know how you'd do that.
>
> One possibility is:
>
> find . -type f -print | grep -v '\.svn' | \
> xargs sed -i 's/FILE1.h/FILE2.h/g'
Instead of find . simply use find *
Niall
More information about the ILUG
mailing list