Super User is a question and answer site for computer enthusiasts and power users. 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

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
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


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.