diff --git a/.hgsvnexternals b/.hgsvnexternals deleted file mode 100644 index 9db23dff4..000000000 --- a/.hgsvnexternals +++ /dev/null @@ -1,2 +0,0 @@ -[.] - docutils -r5461 svn://svn.berlios.de/docutils/trunk/docutils/docutils diff --git a/Makefile b/Makefile index 4216a4d6b..f66582be4 100644 --- a/Makefile +++ b/Makefile @@ -29,7 +29,7 @@ clean: -rm *.html update: - svn update + hg pull --update http://hg.python.org/peps propcheck: $(PYTHON) propcheck.py diff --git a/pep0/constants.py b/pep0/constants.py index 1bdf201cc..d3e85de85 100644 --- a/pep0/constants.py +++ b/pep0/constants.py @@ -17,13 +17,13 @@ Created: 13-Jul-2000 intro = u""" The PEP contains the index of all Python Enhancement Proposals, known as PEPs. PEP numbers are assigned by the PEP Editor, and - once assigned are never changed. The SVN history[1] of the PEP - texts represent their historical record. + once assigned are never changed. The Mercurial history[1] of + the PEP texts represent their historical record. """ references = u""" [1] View PEP history online - http://svn.python.org/projects/peps/trunk/ + http://hg.python.org/peps/ """ footer = u""" diff --git a/pep2html.py b/pep2html.py index b2fc637e0..273920f1d 100755 --- a/pep2html.py +++ b/pep2html.py @@ -49,7 +49,7 @@ REQUIRES = {'python': '2.2', PROGRAM = sys.argv[0] RFCURL = 'http://www.faqs.org/rfcs/rfc%d.html' PEPURL = 'pep-%04d.html' -PEPCVSURL = ('http://svn.python.org/view/peps/trunk/pep-%04d.txt') +PEPCVSURL = ('http://hg.python.org/peps/file/tip/pep-%04d.txt') PEPDIRRUL = 'http://www.python.org/peps/' diff --git a/pep2pyramid.py b/pep2pyramid.py index 7cbf79e9d..4ea997a8f 100755 --- a/pep2pyramid.py +++ b/pep2pyramid.py @@ -43,7 +43,7 @@ PROGRAM = sys.argv[0] SERVER_DEST_DIR_BASE = ( '/data/ftp.python.org/pub/beta.python.org/build/data/dev/peps') RFCURL = 'http://www.faqs.org/rfcs/rfc%d.html' -PEPCVSURL = 'http://svn.python.org/view/*checkout*/peps/trunk/pep-%04d.txt' +PEPCVSURL = 'http://hg.python.org/peps/file/tip/pep-%04d.txt' PEPDIRURL = '/dev/peps/' PEPURL = PEPDIRURL + 'pep-%04d' PEPANCHOR = '%i' diff --git a/propcheck.py b/propcheck.py deleted file mode 100755 index b4dfc74d7..000000000 --- a/propcheck.py +++ /dev/null @@ -1,75 +0,0 @@ -#!/usr/bin/env python -"""Perform an integrity check upon all PEPs to make sure the needed svn -properties are set.""" - -import glob -import pdb -import subprocess -from xml.etree import ElementTree - -PROPS = {'svn:eol-style': "native", 'svn:keywords': "Author Date Id Revision"} - - -def get_props(): - """Return the properties set on pep-*.txt files as an ElementTree instance. - - Files with no properties set will not be contained in the returned data. - - """ - cmd = 'svn proplist --xml pep-*.txt' - proc = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE) - xml_results = proc.communicate()[0] - if proc.returncode: - raise subprocess.CalledProcessError("%s returned %d" % - (cmd, proc.returncode)) - return ElementTree.fromstring(xml_results) - - -def missing_props(props): - """Figure out what properties are missing on what PEPs, returning a sequence - of (path, [missing_props]) pairs. - - For the set properties (as calculated by get_props()), see which PEPs are - lacking any properties. For the PEPs that are not even listed in the set - properties, assume they are missing all needed properties. - - """ - problems = [] - missing_files = set(glob.glob('pep-*.txt')) - missing_files.remove('pep-0000.txt') - for target in props: - assert target.tag == 'target' - needs = PROPS.keys() - path = target.attrib['path'] - missing_files.remove(path) - for property in target.getchildren(): - assert property.tag == 'property' - try: - needs.remove(property.attrib['name']) - except ValueError: - pass - if needs: - problems.append([path, needs]) - for path in missing_files: - problems.append([path, PROPS.keys()]) - return problems - - -def fix_props(missing_props): - """Fix the missing properties.""" - for path, missing in missing_props: - print "For %s, setting %s" % (path, missing) - for problem in missing: - cmd = 'svn propset %s "%s" %s' % (problem, PROPS[problem], path) - subprocess.check_call(cmd, shell=True) - - -def main(): - props = get_props() - need_fixing = missing_props(props) - fix_props(need_fixing) - - - -if __name__ == '__main__': - main()