tags:

views:

310

answers:

2

I need to limit access to merge changes into the trunk to specific individuals. Is there any way to limit merge rights on specific folders in subversion? I don't want to block merging from branch to branch, only into the trunk.

+3  A: 

Can't you make the trunk read-only for those specific people, using Subversion's access control mechanisms?

In your svnaccess file:

[/MyProject/trunk]
me = rw
albert = r
bernard = r
chris = rw

would allow you and Chris to make changes (including merges) to the trunk of "MyProject", while only giving read permissions to Albert and Bernard.

onnodb
+2  A: 

AFAIK there's no such thing as "merge rights", only read and write permissions. And merging is actually a write operation, you have to give write permission to specific folders ('trunk' in you case) only to those you want to.

Pleas read "Path-Based Authorization" for details.

Milen A. Radev
Agree. A "merge" is really an Update (read from repo), followed by some edits (combining your code), followed by a commit. That commit looks like any other.
gbarry