Note how to make an hg repo read-only
This commit is contained in:
parent
0dc36a211e
commit
a6d0658d08
17
pep-0512.txt
17
pep-0512.txt
|
@ -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
|
||||||
-----------------------------------------
|
-----------------------------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue