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

Re: rm multiple locks

From: Troy Curtis Jr <troycurtisjr_at_gmail.com>
Date: 2006-10-13 05:10:33 CEST

On 10/12/06, Bob Proulx <bob@proulx.com> wrote:
> Brian E. Fox wrote:
> > Is there an easy way to remove multiple locks in a repo? I have about
> > 100 bad locks to get rid of. The svnbook hints at piping the output of
> > lslocls, but I haven't been able to figure it out.
>
> I would simply make a command line loop.
>
> for f in $(svn status | awk '$1=="K"{print$NF}'); do svn unlock $f; done
>
> Bob
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>

But then you have to have a working copy and to catch (possibly) all
the locks you would need a working copy of the root directory! Of
course if you don't have direct access to the repo, then you would
have to do it that way...but in that case you might want to include
the '--force' option, as he does mention that they are "bad" locks.

Troy

-- 
"Beware of spyware. If you can, use the Firefox browser." - USA Today
Download now at http://getfirefox.com
Registered Linux User #354814 ( http://counter.li.org/)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Oct 13 05:11:51 2006

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.