3

Actually, I check the size of a commit in the pre-commit hook. But all the files are commited before I can refuse the commit in pre-commit.

For example, if the size limit is 10 MB and the user sends 1 GB file, the 1 GB will be completely transfered to my server and then the pre-commit hook will refuse the transaction.

I want to refuse the transaction if the commit size is greater that the repository limit before all the files are transfered to the server.

How is this possible?

Jonathan Rioux
  • 1,067
  • 2
  • 14
  • 30
  • Possible duplicate of http://stackoverflow.com/questions/4798201/client-side-pre-commit-hooks-in-subversion ? – DaveShaw Jun 24 '11 at 22:42

2 Answers2

0

TSVN Supports client side hooks, the release notes are here, and the documentation is here.

DaveShaw
  • 52,123
  • 16
  • 112
  • 141
-1

See the apache directives LimitRequestBody and LimitXMLRequestBody

http://httpd.apache.org/docs/2.2/mod/core.html#limitrequestbody

http://httpd.apache.org/docs/2.2/mod/core.html#limitxmlrequestbody

vinnyjames
  • 2,040
  • 18
  • 26