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

Re: [CONTRIB] server-side/add-needs-lock.py

From: Daniel Shahaf <d.s_at_daniel.shahaf.co.il>
Date: Fri, 18 Apr 2008 14:18:39 +0300 (Jerusalem Daylight Time)

Kevin Radke wrote on Thu, 10 Apr 2008 at 12:54 -0500:
> Attached you can find a simple python script that adds missing
> svn:needs-lock properties directly to files in the repository as a new
> revision. No working copy is required, but the script must run on
> your subversion server. (Either periodically, or as part of a
> post-commit hook script)
>
> I wrote this for a few reasons:
>
> 1) It was taking about 45 minutes to do this job on a 40G working copy
> with regular svn commands. This script takes less than 5 minutes.
> Really fast if you make it part of your post-commit hook. (Too many
> non-technical users had problems setting up autoprops, so we just
> decided to "clean up" after them instead.)
> 2) I haven't yet sent in an updated patch to allow svn propset on URLs...
> 3) One of my 2 year old twins has decided I don't need any sleep after
> 2am, so I had some free time.
>
> This script could (and probably should) be extended to support all
> autoprops, like client-side/svn_apply_autoprops.py does.
>
> Comments are welcome. But please be kind, my python is pretty rusty.
>
> Hopefully someone finds this useful, and possibly it is worthy to be
> placed in contrib...
>
> Kevin R.
>

Ping. Has anyone looked at Kevin's contribution?

Kevin: could your script be implemented in terms of svn_apply_autoprops.py?
Why is a new script needed?

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-04-18 13:18:51 CEST

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.