Notice: hg.python.org retires to "cold archive" status

I doubt anyone is likely to deeply care… but hg.python.org is now in “cold archive” status.

@JacobCoffee and I have been being paged relentlessly as llm scrapers, bots, etc pummeled the server over the last… while.

Today I migrated it to serve over static http instead of the CGI hgweb interface. clones over https still work with hg clone https://hg.python.org/path/to/repo, and revisions are still served in a recognizable way via https://hg.python.org/cpython/rev/451dd29ebae3 to maintain the functionality of the https://hg.python.org/lookup endpoint, such as https://hg.python.org/lookup/451dd29ebae3.

If something deeply important in the history of bugs.python.org or similar is broken from a hypermedia perspective, please let me know, we will work to restore the link to something we can maintain.

23 Likes

I don’t know if this is related, but now you get a wrong content type.

$ curl -I https://hg.python.org/cpython/rev/451dd29ebae3
HTTP/2 200 
date: Sun, 15 Jun 2025 07:22:53 GMT
server: gunicorn
content-type: text/html; charset=utf-8
content-length: 1004
x-clacks-overhead: GNU Terry Pratchett
strict-transport-security: max-age=315360000; includeSubDomains; preload

It should be “text/plain” or maybe “text/x-diff” if browsers support it.

Easy enough fix: hg: set responses from hgmin service to text/plain by ewdurbin · Pull Request #590 · python/psf-salt · GitHub

3 Likes