Reputation: 371
I want to check Junior developer's codes via senior Developer before they commit their codes to SVN. How can I manage it with SVN? My point is senior Developer notifies Junior developer want to commit their codes (for example with email) and after they confirmed, codes commit. our SVN is on windows server
thank you.
Upvotes: 3
Views: 964
Reputation: 29735
There are two possibilities:
You can use branches and the --reintegrate option in SVN to merge them automatically back into the trunk. This works fairly well as long as you follow some rules(you can bend them, you can break them, but you will encounter difficulties):
you can accept patches for people to send around. This is a quite manual process but it depends on how many Junior Developer you have. Note that while it sounds impossible the whole svn development process works by sending patches to the mailing list until you sent enough to get committer-privilege.
Upvotes: 1
Reputation: 6535
You can make your junior devs work on branches only, and stop them committing to trunk. You can do that by either setting permissions to specific repo paths on the SVN server, or by writing a pre-commit hook.
If you're using VisualSVN Server, you can configure it on this dialog:
I've kind-of cheated here in this example, by setting an overriding permission. For larger teams, you'd want something more scalable where you set read-only permissions on the repo and then explicitly grant access to /branches/ for the developers, and /trunk/ for senior devs.
Upvotes: 2
Reputation: 28194
Subversion does not directly support a "code review" model like you may be used to with a GitHub Pull Request. There are some add-on tools that may help here, but I can't recommend any as I've never used them.
What you may want to try is to have developers working in their own branches and committing to that, then ask the senior developer to review and then merge to a central trunk or other branch.
Upvotes: 1