Source approval using SVN

1

Is there any way to control the approval of an SVN repository file? If there is no explicit approval, is there any other similar way (like in openSource projects) to control file entry in the repository?

Thank you!

    
asked by anonymous 18.01.2016 / 14:17

1 answer

1

For you to do exactly what you want, get the commit on the server and keep it out of the repository by the time it gives you an approval, I believe it would be reasonably complicated, you need to build the entire interface for this since as far as I I remember there is nothing ready in this model exactly.

Alternatively I suggest two options:

  • You accept commits normally, however do a post-commit hook warning you (email, telegram, etc.) that there has been a change in the code made by user X (you do the script with conditions to only trigger certain users) in the file Y revision W, so you can review whether that person's code does not need to be rolled back.
  • You create a branch of the repository and require with that devs only do the commits on it and only allow them to merge the changes in the trunk (main branch) after the code has been reviewed.
  • It would also be possible to combine the two strategies and make commits in the branch generate alerts, speeding up the review process to give "okay, can merge in the trunk."

        
    19.01.2016 / 00:32