You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Kenneth Porter <sh...@sewingwitch.com> on 2005/04/18 06:53:07 UTC

Finding files *lacking* a property

I'm setting svn:eol-style in a large repository and I'd like to know which 
files lack this property so I can quickly spot new files added that failed 
to get this set. Can I do this with a svn command or do I need some fancy 
combinations of find and editor macros?

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

Re: Finding files *lacking* a property

Posted by Andrew Thompson <an...@aktzero.com>.
Kenneth Porter wrote:
> I'm setting svn:eol-style in a large repository and I'd like to know 
> which files lack this property so I can quickly spot new files added 
> that failed to get this set. Can I do this with a svn command or do I 
> need some fancy combinations of find and editor macros?

This might be the easiest to work with. It'll give you every property of 
every item under your url.

svn proplist -R URL


This would get you every file that has your property set. You'd have to 
parse the output and then compare that against the complete list of 
files in your repository.

svn propget svn:eol-style -R URL


You could also check to see if the 1.2RC can do XML output of the 
property functions.

-- 
Andrew Thompson
http://aktzero.com/

Re: Finding files *lacking* a property

Posted by Andrew Thompson <su...@aktzero.com>.
Kenneth Porter wrote:
> I'm setting svn:eol-style in a large repository and I'd like to know 
> which files lack this property so I can quickly spot new files added 
> that failed to get this set. Can I do this with a svn command or do I 
> need some fancy combinations of find and editor macros?

This might be the easiest to work with. It'll give you every property of
every item under your url.

svn proplist -R URL


This would get you every file that has your property set. You'd have to
parse the output and then compare that against the complete list of
files in your repository.

svn propget svn:eol-style -R URL


You could also check to see if the 1.2RC can do XML output of the
property functions.

-- 
Andrew Thompson
http://aktzero.com/
Interested in a hosted SVN repository? Email me, let's talk...

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

RE: Finding files *lacking* a property

Posted by Dale Worley <dw...@pingtel.com>.
> From: Kenneth Porter [mailto:shiva@sewingwitch.com]
>
> I'm setting svn:eol-style in a large repository and I'd like
> to know which
> files lack this property so I can quickly spot new files
> added that failed
> to get this set. Can I do this with a svn command or do I
> need some fancy
> combinations of find and editor macros?

You can use "svn propget svn:eol-style -R ..." to get all the files that
*do* have the property, and "svn status -v ..." to get all the files.  Then
sort both lists and use "comm" to get the files that do *not* have the
property.

I've attached a script from the sipX (http://www.sipfoundry.org)
distribution that enforces fairly strict rules for svn:eol-style and
svn:mime-type.

Dale