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

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

From: Kevin Radke <kmradke_at_gmail.com>
Date: Thu, 10 Apr 2008 12:54:25 -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.

---------------------------------------------------------------------
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-11 22:55:10 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.