You are here

Add new comment

Error message

The spam filter installed on this site is currently unavailable. Per site policy, we are unable to accept new submissions until that problem is resolved. Please try resubmitting the form in a couple of minutes.

I noticed that svn propdel --recursive doesn't work if the properties are not set on files at the top level. If you want to delete all svn:mergeinfo from any subtree or file inside the branch, it's best to create a list of files on which to delete the property individually:

svn propget -R svn:mergeinfo --xml ./*
gives you output containing among others this list of files. If you're on unix, you can use grep and sed to massage the output so that all lines looking like
will be converted to
svn propdel svn:mergeinfo "path/to/some/file"
following line passes this output directly through bash so that it gets executed immediately:
svn propget -R svn:mergeinfo --xml ./*|grep ' path="'|sed -e 's/ path="/svn propdel svn:mergeinfo "/'|sed -e 's/>$//'|bash

Users of other platforms will have to use some advanced text editor, or install ports of grep and sed for their platform.

Before committing, it's best to verify you didn't miss any properties due to possible weirdness in the xml output, so run
svn propget -R svn:mergeinfo --xml ./*
again to double-check.

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.