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

Re: How to tell whether a branch is "locked" through a perm check on a pre-commit hook without actually checking in?

From: Tyler Roscoe <tyler_at_cryptio.net>
Date: Fri, 18 Sep 2009 12:49:00 -0700

On Fri, Sep 18, 2009 at 12:38:11PM -0700, David M. Karr wrote:
> We lock branches here by doing a check in a pre-commit hook for whether
> you have permission to write to a branch. They lock the branch by
> somehow removing permissions for most people.
>
> It's easy enough for me to check to see whether the branch is locked by
> trying to do a commit, but is there a less intrusive way to check that?

I guess it depends on how they implement the pre-commit hook, but I
don't think svn has the ability to attempt a fake commit or anything
like that. I think you'll have to look at whatever the pre-commit hook
script looks at to see if you have commit permissions.

tyler

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-09-18 21:49:51 CEST

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.