[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Removing property from repository for all files

From: Christopher Ness <chris_at_nesser.org>
Date: 2005-04-29 03:56:03 CEST

On Thu, 2005-28-04 at 17:22 -0700, rds wrote:
> Moved cvs repository to svn and discovered that all/many of our source files
> contain "svn:keywords" property:
> # svn propget "svn:keywords" Test.java
> Author Date Id Revision
> Perhaps it does make a lot of sense for us to set "svn:keywords" on each file
> (since it's always the same). So, we'd like to remove/clear "svn:keywords" from
> *all files* in the repository and set "enable-auto-props = yes" in the
> /etc/subversion instead.
> What would be the best way to do that?

I assume you know how to set auto-props and need to remove all instances
of the key words.

cd ~/sandbox/workingcopy/
find . | grep -v .svn | xargs svn propdel "svn:keywords"
svn commit -m"Removed all instances of svn:keywords"

That should do it.
Shell scripting is fun! Although you could probably only use the find
command, read the man page.

You just don't want to waste your time working on the .svn and subdirs
of those accounting directories in the working copy.
I don't think the svn client would let you do that anyway, but better
safe than sorry.


Software Engineering IV,
McMaster University
PGP Public Key: http://www.nesser.org/pgp-key/
21:48:55 up 4 days, 1:12, 3 users, load average: 0.52, 0.62, 0.52 

Received on Fri Apr 29 03:59:47 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.