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

Re: Check SVN user permissions before commit

From: Nico Kadel-Garcia <nkadel_at_gmail.com>
Date: Sat, 25 May 2013 01:44:18 -0400

On Fri, May 24, 2013 at 6:40 PM, Dennis Estenson
<destenson_at_digitalforcetech.com> wrote:
> Hello,
>
>
>
> I am not a subscriber to the list, so I would appreciate being CC'd on any
> replies.
>
>
>
> How would I go about checking for user (write) permissions without actually
> doing a procedure that might fail due to permissions? Say, for example, I
> don't have write permissions to a project in SVN. I want to check that I
> have write permissions without trying to do a commit. In particular, I want
> to tag (svn cp) a number of projects, but I want to check that I have
> permission to perform the tags on every project before tagging any project.
> How would I do this?

It depends greatly on the access control methods. pre-commit scripts,
svnserve.conf for svn:// repositories,
/etc/httpd/conf.d/subversion.conf for the HTTPS based RPM's,,
filesystem access based control, and all sorts of complex local setups
prevent being able to do a simple "pre-test this" operation.
Received on 2013-05-25 07:44:55 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.