[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: <kmradke_at_rockwellcollins.com>
Date: Fri, 18 Apr 2008 10:05:13 -0500

Daniel Shahaf <d.s_at_daniel.shahaf.co.il> wrote on 04/18/2008 06:18:39 AM:
> 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
> > 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...
> Ping. Has anyone looked at Kevin's contribution?

I know of one other user who found it useful and is using it. Haven't
heard anything from the devs...

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

Yes, svn_apply_autoprops.py could be modified to use the python api
and operate directly on the repository. (In fact, it has a comment
about it should be modified to use the API).
(However, I believe svn_apply_autoprops.py is in the client-side area
 and my version has to run server-side.)

Ideally it would be nice to merge the functionality, but I'm probably
not in a position to perform that merge...

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-18 17:05:36 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.