@@ -413,11 +413,16 @@ as follow::
413413 $ cd ../3.5
414414 $ hg up
415415 $ hg graft 2.7
416- $ # switch to 3.x , merge, commit, and push everything
417- $ cd ../3.x
416+ $ # switch to 3.6 , merge and commit
417+ $ cd ../3.6
418418 $ hg up
419419 $ hg merge 3.5
420420 $ hg ci -m '#12345: merge with 3.5.'
421+ $ # switch to 3.x, merge, commit, and push everything
422+ $ cd ../3.x
423+ $ hg up
424+ $ hg merge 3.6
425+ $ hg ci -m '#12345: merge with 3.6.'
421426 $ hg push
422427
423428Unless noted otherwise, the rest of the page will assume you are using the
@@ -458,25 +463,25 @@ Python version.
458463Merging between different branches (within the same major version)
459464------------------------------------------------------------------
460465
461- Assume that Python 3.6 is the current in-development version of Python and that
462- you have a patch that should also be applied to Python 3.5 . To properly port
466+ Assume that Python 3.7 is the current in-development version of Python and that
467+ you have a patch that should also be applied to Python 3.6 . To properly port
463468the patch to both versions of Python, you should first apply the patch to
464- Python 3.5 ::
469+ Python 3.6 ::
465470
466- cd 3.5
471+ cd 3.6
467472 hg import --no-commit patch.diff
468473 # Compile; run the test suite
469474 hg ci -m '#12345: fix some issue.'
470475
471- Then you can switch to the ``3.5 `` clone, merge, run the tests and commit::
476+ Then you can switch to the ``3.7 `` clone, merge, run the tests and commit::
472477
473- cd ../3.6
474- hg merge 3.5
478+ cd ../3.7
479+ hg merge 3.6
475480 # Fix any conflicts (e.g. ``hg revert -r default Misc/NEWS``); compile; run the test suite
476- hg ci -m '#12345: merge with 3.5 .'
481+ hg ci -m '#12345: merge with 3.6 .'
477482
478483If you are not using the share extension, you will need to use
479- ``hg pull ../3.5 `` before being able to merge.
484+ ``hg pull ../3.6 `` before being able to merge.
480485
481486.. note ::
482487 Even when porting an already committed patch, you should *still * check the
@@ -488,29 +493,29 @@ If you are not using the share extension, you will need to use
488493Porting changesets between the two major Python versions (2.x and 3.x)
489494----------------------------------------------------------------------
490495
491- Assume you just committed something on ``2.7 ``, and want to port it to ``3.5 ``.
496+ Assume you just committed something on ``2.7 ``, and want to port it to ``3.6 ``.
492497You can use ``hg graft `` as follow::
493498
494- cd ../3.5
499+ cd ../3.6
495500 hg graft 2.7
496501
497- This will port the latest changeset committed in the 2.7 clone to the 3.5 clone.
502+ This will port the latest changeset committed in the 2.7 clone to the 3.6 clone.
498503``hg graft `` always commits automatically, except in case of conflicts, when
499504you have to resolve them and run ``hg graft --continue `` afterwards.
500505Instead of the branch name you can also specify a changeset id, and you can
501506also graft changesets from 3.x to 2.7.
502507
503508On older version of Mercurial where ``hg graft `` is not available, you can use::
504509
505- cd ../3.5
510+ cd ../3.6
506511 hg export 2.7 | hg import -
507512
508513The result will be the same, but in case of conflict this will create ``.rej ``
509514files rather than using Mercurial merge capabilities.
510515
511- A third option is to apply manually the patch on ``3.5 ``. This is convenient
516+ A third option is to apply manually the patch on ``3.6 ``. This is convenient
512517when there are too many differences with ``2.7 `` or when there is already a
513- specific patch for ``3.5 ``.
518+ specific patch for ``3.6 ``.
514519
515520.. warning ::
516521 Never use ``hg merge `` to port changes between 2.x and 3.x (or vice versa).
0 commit comments