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

Recursive lock and unlock commands

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: Wed, 7 May 2014 14:59:25 +0100 (BST)

A customer asked if we could provide a recursive "svn unlock" command -- presently they script it. Someone else asked in 2009 -- <http://svn.haxx.se/users/archive-2009-08/0354.shtml>.

It sounds totally reasonable to me. In fact it sounds like an oversight that we didn't offer this originally.

Of course we'd want to implement this for URLs and for WC paths, and for all the 'depth' variants not just 'infinite', for consistency.

I would propose that

  "svn lock/unlock --depth=D URL" means lock/unlock all existing files (not directories) under URL down to depth D.

  "svn lock/unlock --depth=D WC-PATH" means lock/unlock all the versioned files (not directories) in the WC under WC_PATH up to depth D. With regard to recursing into externals, switched paths, etc., this should use the same recursion rules as some other command; not sure which exactly.

The main performance considerations would seem to be: Philip recently implemented batching of multiple lock/unlock requests in one network command, which should make multiple lock/unlock requests much better than before; it would still be slow with old servers; but it won't be slower than the wrapper script approach.

Anything I've missed?

- Julian

Join WANdisco's free daily demo sessions on Scaling Subversion for the Enterprise
Received on 2014-05-16 21:00:32 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.