We have a script to remove the svn: mergeinfo property from all folders inside the Subversion working copy, but not the working copy root directory itself. Currently, NAnt build script is invoked through a separate batch file, so I am trying to replace it with a simpler PowerShell script. I had three attempts: from the naive to the slightly more complex. All three do not meet my criteria, outputting a stringproperty 'svn:mergeinfo' deleted from '.'.
Checking the SVN properties of the working copy root indicates that the svn: mergeinfo property has indeed been removed from this folder, which I don't want. Each version is designed to run from the root of the working copy.
Attempt 1:
Get-ChildItem -Recurse | svn propdel svn:mergeinfo -R $_
Attempt 2:
Get-ChildItem -Recurse -Exclude $pwd | svn propdel svn:mergeinfo -R $_
Attempt 3:
Get-ChildItem | ForEach-Object { ls -R $_ } | svn propdel svn:mergeinfo -R $_
Any thoughts on where the error is in my logic?