1

My project switched from svn to mercurial. I need to shut down/seal the svn repository so nobody commits to it mistakenly anymore. I do not want to shut down the svn server as there are still other projects using it.

My google-fu is failing me. How do I do this?

George Mauer
  • 117,483
  • 131
  • 382
  • 612

1 Answers1

2

Add a pre commit hook in ./hooks/pre-commit (chmod +x of course)

#!/bin/sh
echo "Use the mercurial repository for new code please" 1>&2
exit 1;
Wrikken
  • 69,272
  • 8
  • 97
  • 136
  • Damn you beat me to it. sys.stderr.write ("Use the mercurial repository for new code please.\n") sys.exit(1) – Kev Mar 08 '13 at 23:50