First option I cann't use since then user will not be allowed for
checkin in branch.
Since my aim is that only administrator can create tag aor branch not
other user.
Is ther any good book for hooks it's really tuff for me to understand or
some online
tutorial ?
Regards,
Chetan
Talden wrote:
> 'tag' and 'branch' are not commands in Subversion. Instead they are
> just different paths in the repository folder structure. You can use
> the permissions mechanism in authz to only allow certain users (or
> groups of users) to have write ability in the branches and tags areas.
> If you want to allow writing to a branch but not creation of a branch
> then you definitely will need to use a hook script that checks the
> type of operation (such as a copy to the tags area) and checks a list
> of allowed users.
>
> You will largely need to read example hooks and learn the scripting
> for your platform.
>
> --
> Talden
>
> On 5/23/07, chetan <chetan@savvion.com> wrote:
>
>>
>> Hi Karl,
>>
>> Thanks for info. But still I am not getting clear idea on how to
>> implement
>> hook since I am new to
>> this. Basically I want to disable few commands such as tag,branch
>> for all
>> users only specific user
>> can do it.
>>
>> Any help would be great.
>>
>> Regards,
>> Chetan
>>
>> Karl Fogel wrote:
>>
>> chetanchatwani <chetan@savvion.com> writes:
>>
>>
>> Is there way to restrict svn commands usage for users, means certain
>> users
>> cann't create tag/branch in the
>> repository they can just checkin/checkout in repository ?
>>
>> Look at customizing the pre-commit hook. See
>>
>> http://svnbook.red-bean.com/nightly/en/svn.reposadmin.create.html#svn.reposadmin.create.hooks
>>
>>
>> for more on this.
>>
>> Best,
>> -Karl
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed May 23 12:42:59 2007