[ILUG] Subversion not seeing working copy changes
P at draigBrady.com
Fri Oct 23 16:52:04 IST 2009
Kevin Lyda wrote:
> On Thu, Oct 22, 2009 at 3:35 PM, Éibhear <eibhear.geo at gmail.com> wrote:
>> Your problem is in your find command:
>> find . -type f...
>> will find *all* files, including all the files in the .svn directories.
> D'oh! I've used Perforce too long. Good call.
> I think this does what you want more reliably:
> find . -path '*/.svn' -prune -o -print0 -type f | xargs -0 -n 1 sed -i
> -e 's/foo/bar/'
> In addition your meta-data would now be incorrect so you'd be best to
> check out a new tree. Note that the -print or -print0 is required on
> the RHS of the -o expression. If no action is specified the default
> one of -print will act on what matches either side and the .svn dirs
> themselves match the LHS.
On a related note see http://www.pixelbeat.org/scripts/findrepo
More information about the ILUG