You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Ben Reser <be...@reser.org> on 2004/09/01 20:41:26 UTC

Re: [PATCH] set-props.pl: recursively set props on a working copy

On Wed, Jul 21, 2004 at 01:51:10AM -0600, Michael W Thelen wrote:
> Here is a Perl program I've written to recursively set properties on the files
> and directories in a working copy, based on the contents of the auto-props
> section of a configuration file.  This script could be useful for those who
> have imported files to version control before enabling auto-props, and now
> want to add properties to those files as if auto-props had been enabled in the
> first place.
> 
> In my particular case, I had purposely imported some third-party packages as
> vendor drops with the --no-auto-props flag.  I did that because some of the
> files in the package contained inconsistent line endings, and you cannot set
> svn:eol-style on such files.  This script also incorporates the ability to fix
> inconsistent line endings while setting the svn:eol-style property, and the
> ability to set the svn:executable property for files that are executable.
> 
> I've only tested it on Linux.  It can probably be made to work on Windows
> without too much effort.  The program doesn't take advantage of the Perl
> bindings; it just calls the command-line "svn propset" to do its work.
> 
> Do you think this may be a good script to include under contrib?  This patch
> adds it as a new script "set-props.pl" under contrib/client-side.
> 
> Log:
> * contrib/client-side/set-props.pl:
>   New client side script.  Recursively sets properties on the files and
>   directories in a working copy, based on the contents of the auto-props
>   section of a configuration file.  This script could be useful for those who
>   have imported files to version control before enabling auto-props, and now
>   want to add properties to those files as if auto-props had been enabled in
>   the first place.  The script also incorporates the ability to fix
>   inconsistent line endings while setting the svn:eol-style property, and the
>   ability to set the svn:executable property for files that are executable.

I'll commit this if there are no objects.  Looks good to me...

-- 
Ben Reser <be...@reser.org>
http://ben.reser.org

"Conscience is the inner voice which warns us somebody may be looking."
- H.L. Mencken

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