Jorge Rocha
Jorge Rocha

Reputation: 724

SVN Control Commit Access

Can I control who can commit the projects? I Need to introduce a rule that only one person can commit one specific project at the same time. And the person who want to make changes he only can when he Update the project, that was previously committed.

As in the following example:

    • User 1 working on the project
    • User 2 attempts to commit, but access is denied because User 1 is working on it.
    • User 1 commits the project.
    • User 2 tries to commit to the project and is again rejected.
    • User 2 does Project Update and then commits your changes successfully.

Regards JR

Upvotes: 0

Views: 140

Answers (2)

David W.
David W.

Reputation: 107030

There are two ways to do this:

The Path based authorization is built into Subversion and can control, read (checkout only), read-write (commit), or no-access (no checkout). The pre-commit hook can't control read authorization, but is more flexible in setting commit (read-write) authorization.

Upvotes: 0

dhein
dhein

Reputation: 6555

In tortoise svn you have the posibillty of let the user lock a project, so its almost the behavior you want. The only difference, a user is able to say "I know what I'm doing, and i want to acces anyway" but excepting this, locking an repo, gives you that behavior ;)

E: in tortoisesvn 1.8 simply rightclick the project tortoisesvn->Get Lock/Release Lock

Upvotes: 1

Related Questions