Note how to make an hg repo read-only

This commit is contained in:
Brett Cannon 2016-06-16 13:05:45 -07:00 committed by GitHub
parent 0dc36a211e
commit a6d0658d08
1 changed files with 14 additions and 3 deletions

View File

@ -114,9 +114,9 @@ Repositories to Migrate
While hg.python.org [#h.p.o]_ hosts many repositories, there are only While hg.python.org [#h.p.o]_ hosts many repositories, there are only
five key repositories that should move: five key repositories that should move:
1. devinabox [#devinabox-repo]_ 1. devinabox [#devinabox-repo]_ (done)
2. benchmarks [#benchmarks-repo]_ 2. benchmarks [#benchmarks-repo]_ (maybe)
3. peps [#peps-repo]_ 3. peps [#peps-repo]_ (done)
4. devguide [#devguide-repo]_ 4. devguide [#devguide-repo]_
5. cpython [#cpython-repo]_ 5. cpython [#cpython-repo]_
@ -230,6 +230,17 @@ showcase for asynchronous programming. The code for the bot is hosted
in the Knights Who Say Ni project [#ni]_. in the Knights Who Say Ni project [#ni]_.
Make old repository read-only
'''''''''''''''''''''''''''''
Updating `.hg/hgrc` in the now-old Mercurial repository in the `[hooks]`
section with::
pretxnchangegroup.reject = echo " * This repo has been migrated to github.com/python/peps and does not accept new commits in Mercurial!" 2>&1; exit 1
will make the repository read-only.
Requirements for Web-Related Repositories Requirements for Web-Related Repositories
----------------------------------------- -----------------------------------------