Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Our need is to store only axcrypted (.AXX) documents in an SVN repository, and we want to prevent accidental uploading of the non-encrypted documents. Is there a way to do this on SVN server?

We would like to enforce this .AXX only policy on server-side of the SVN, so we don't have to rely on the ignore list of all our SVN clients.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

I believe that you can do this with a pre-commit hook, an example in Python is here. Instead of checking files for tabs, you could look at their extensions, and return a non-zero exit code if you want to abort the transaction.

share|improve this answer

Your Answer

 
discard

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.