You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by rds <ru...@yahoo.com> on 2005/04/29 00:22:50 UTC

Removing property from repository for all files

Hi,

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?

Thanks in advance




__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Removing property from repository for all files

Posted by Christopher Ness <ch...@nesser.org>.
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.

Chris
-- 
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 
http://www.gnu.org/philosophy/no-word-attachments.html

Re: Removing property from repository for all files

Posted by Mark Parker <ma...@msdhub.com>.
rds wrote:
> Hi,
> 
> 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?
> 
> Thanks in advance

The answers given already are likely correct ways to remove properties 
recursively, but I think there's one fairly major thing that is being 
overlooked here.

Auto-props aren't a SUBSTITUTION for having properties set on files, 
they're a way to AUTOMATICALLY have properties set on files when they're 
added.

If you take the svn:keywords property off of a file, then it won't have 
keyword expansion enabled, regardless of what is in your /etc/subversion 
configuration file.

Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org