Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top


is it possible to limit the file size for commits in subversion server?

Some guys upload large swf files in the subversion repository. I would like to limit the file size to 30 MB.

Thanks Igor

share|improve this question
up vote 1 down vote accepted

You just need to add a pre-commit hook on the Subversion repository. See this page for a good start on that.

share|improve this answer
Thanks. This gives a direction. But this doesn't solve my problem, because I can't code python. Someone has a ready pre-commit hook script for this case? – Igor Mukhin Jun 28 '10 at 16:18… should do what you want. It's still Python, but it shouldn't need much editing. Between this and the other page I linked to you should be well on your way. – kaerast Jun 28 '10 at 17:32
thanks you very much – Igor Mukhin Jun 30 '10 at 11:16
this seems to need pysvn – cherouvim Aug 25 '10 at 7:36
The current URL for this script is… – Philipp Wendler Jul 9 '14 at 11:05

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.