[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:07:51 CEST

On 10/12/06, Brian E. Fox <brianf@reply.infinity.nu> 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.
>
> Thanks,
> Brian

I believe this should do the trick:
svnadmin lslocks $repo | xargs svnadmin rmlocks $repo

or

svnadmin rmlocks $repo $(svnadmin lslocks $repo)

or even

for lockpath in $(svnadmin lslocks $repo)
do
svnadmin rmlocks $repo $lockpath
done

One or all of those is bound to work.

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:08:33 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.