@@ -24,13 +24,18 @@ Getting Set Up
24
24
Version Control Setup
25
25
---------------------
26
26
27
- CPython is developed using `Mercurial <http://hg-scm.org/ >`_. The Mercurial
28
- command line program is named ``hg ``; this is also used to refer to Mercurial
29
- itself. Mercurial is easily available for common Unix systems by way of the
30
- standard package manager; under Windows, you might want to use the
31
- `TortoiseHg <http://tortoisehg.org/ >`_ graphical client, but the build system
32
- still prefers :file: `hg.exe ` to be on your PATH.
33
-
27
+ CPython is developed using `git <https://git-scm.com >`_. The git
28
+ command line program is named ``git ``; this is also used to refer to git
29
+ itself. git is easily available for all common operating systems. As the
30
+ CPython repo is hosted on GitHub, please refer to either the
31
+ `GitHub setup instructions <https://help.github.com/articles/set-up-git/ >`_
32
+ or the `git project instructions <https://git-scm.com >`_ for step-by-step
33
+ installation directions.
34
+
35
+ You may also wish to set up an SSH key as
36
+ described in the GitHub instructions as this will allow you to interact with
37
+ GitHub without typing a username and password each time you execute a
38
+ command, such as `git pull `, `git push `, or `git fetch `.
34
39
35
40
.. _checkout :
36
41
@@ -49,13 +54,13 @@ To get a working copy of the :ref:`in-development <indevbranch>` branch of
49
54
CPython (core developers use a different URL as outlined in :ref: `coredev `),
50
55
run::
51
56
52
- hg clone https://hg. python.org /cpython
57
+ git clone https://github.com/ python/cpython
53
58
54
59
If you want a working copy of an already-released version of Python,
55
- i.e., a version in :ref: `maintenance mode <maintbranch >`, you can update your
56
- working copy . For instance, to update your working copy to Python 3.5, do::
60
+ i.e., a version in :ref: `maintenance mode <maintbranch >`, you can checkout
61
+ a release branch . For instance, to checkout a working copy of Python 3.5, do::
57
62
58
- hg update 3.5
63
+ git checkout 3.5
59
64
60
65
You will need to re-compile CPython when you do such an update.
61
66
@@ -346,9 +351,8 @@ when trying to build an old (2.x) Python with a new (3.x) Python installed, or
346
351
vice versa.
347
352
348
353
To overcome this problem, auto-generated files are also checked into the
349
- Mercurial repository. So if you don't touch the auto-generation scripts, there's
350
- no real need to auto-generate anything. However, as Mercurial doesn't preserve
351
- timestamps well, a special build target ``touch `` was added (the ``touch ``
354
+ git repository. So if you don't touch the auto-generation scripts, there's
355
+ no real need to auto-generate anything. A special build target ``touch `` was added (the ``touch ``
352
356
build target is not designed for git clones and does not support them). Run::
353
357
354
358
make touch
0 commit comments