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

Re: remove-zombie-locks.py not passing username to pre-unlock hook

From: Clint Lawrence <clint.lawrence_at_gmail.com>
Date: Fri, 13 Feb 2009 10:36:06 +1100

2009/2/13 <kmradke_at_rockwellcollins.com>:
>
> I have a pre-unlock hook that checks for certain usernames before allowing
> the unlock.
> This works great.
>
> If I run remove-zombie-locks.py on a repo (on the server), the hook script
> gets called
> with a null 3rd parameter. I.E. no username.
>
> Any svn python gurus know if you can use the python api to pass an username
> when using svn.repos.svn_repos_fs_unlock routine?

I think if you replace that call with
svn.fs.svn_fs_unlock(self.fs_ptr, path, lock.token, True, subpool)
it will bypass the hooks entirely, if that helps. (I've not tested this BTW)

Cheers,
Clint

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1147817

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-02-13 03:41:29 CET

This is an archived mail posted to the Subversion Users mailing list.