Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Recurse Subversion properties

Tags:

svn

I thought this would be simple, but I'm struggling. I want to manage Subversion properties recursively, so in a directory and all files and dirs that it contains.

In this particular case I'm trying to delete certain properties recursively, but I'm interested in the generic pattern.

Does Subversion provide a tool for this (like svn propdel -R)? I couldn't find any in the docs. If not, what would be the easiest way to shell-script my way out of this?

FYI: Max OS X, subversion 1.6.x.

like image 805
avdgaag Avatar asked Dec 23 '22 08:12

avdgaag


2 Answers

According to svn help propdel, it supports the -R switch:

Valid options:
  -R [--recursive]         : descend recursively, same as --depth=infinity
like image 180
Greg Hewgill Avatar answered Dec 29 '22 16:12

Greg Hewgill


From the help (shortened to relevant part):

svn help propdel

...
Valid options:
  -q [--quiet]             : print nothing, or only summary information
  -R [--recursive]         : descend recursively, same as --depth=infinity
  --depth ARG              : limit operation by depth ARG ('empty', 'files',

...

Then yes, you can use -R or --recursive.

So this should work:

svn propdel svn:externals . -R
like image 30
Lasse V. Karlsen Avatar answered Dec 29 '22 16:12

Lasse V. Karlsen