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

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

From: Ben Reser <ben_at_reser.org>
Date: 2004-09-01 22:41:26 CEST

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 <ben@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
Received on Wed Sep 1 23:02:16 2004

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

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