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

Re: Applying auto-props to existing files

From: Ryan Schmidt <subversion-2008c_at_ryandesign.com>
Date: Thu, 20 Nov 2008 18:10:56 -0600

On Nov 20, 2008, at 07:35, Andy Levy wrote:

> On Thu, Nov 20, 2008 at 02:53, Adrian Shum <tcshum_at_taifook.com> wrote:
>
>> I wanna know if there are any way to apply auto-props to existing
>> files?
>>
>> There are some developers in our organization haven't update their
>> svn
>> settings,
>> hence, no properties are set for files added by them.
>>
>> It is impossible for us to find one by one for such file and do
>> manual
>> changes,
>> because our repository is growing quite large now.
>
> svn_apply_autoprops.py is what you want (it's in the contrib portion
> of SVN repository, but I don't know if that's the most up to date
> version). Last time I used it, it would remove any properties which
> did not conform to your auto-props settings, so if you have "custom"
> properties on a few files they will be overridden by the auto-props
> setting.
>
> You'll have to check out a WC, run the script, then commit the
> changes.

Another way to do this is with svndumptool 0.6 (not released yet,
you'd have to get the latest code from their repository). With this
method, you would dump the repository to a text file, modify it with
svndumptool, then load it into a new repository.

http://svn.borg.ch/svndumptool/

http://repos.borg.ch/svn/svndumptool/trunk/

If many people already have working copies from your existing
repository, this method will likely be less convenient, but I wanted
you to be aware of the alternative.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-11-21 01:11:26 CET

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.