# HG changeset patch # User Pierre-Yves David # Date 1575453600 -3600 # Node ID ba683c5fe93203ccebf61406d39eb8e2a51d9b22 # Parent 191ed83dbc07a5fc75e91c7c09906065f64be1b4# Parent 60be1bd580c7eb8e2d4b8cea49453e5dc8c53d97 branching: merge with stable diff -r 191ed83dbc07 -r ba683c5fe932 .gitlab-ci.yml --- a/.gitlab-ci.yml Mon Nov 18 14:33:59 2019 +0700 +++ b/.gitlab-ci.yml Wed Dec 04 11:00:00 2019 +0100 @@ -7,26 +7,30 @@ image: octobus/ci-py2-hgext3rd script: - hg pull -R /ci/repos/mercurial/ - - hg -R /ci/repos/mercurial/ update `hg log -r . -T '{branch}'` + - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')") + - hg -R /ci/repos/mercurial/ update "$hg_rev" - (cd tests; /ci/repos/mercurial/tests/run-tests.py --color=always) tests-py2-pure: image: octobus/ci-py2-hgext3rd script: - hg pull -R /ci/repos/mercurial/ - - hg -R /ci/repos/mercurial/ update `hg log -r . -T '{branch}'` + - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')") + - hg -R /ci/repos/mercurial/ update "$hg_rev" - (cd tests; /ci/repos/mercurial/tests/run-tests.py --color=always --pure) tests-py3-cext: image: octobus/ci-py3-hgext3rd script: - hg pull -R /ci/repos/mercurial/ - - hg -R /ci/repos/mercurial/ update `hg log -r . -T '{branch}'` + - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')") + - hg -R /ci/repos/mercurial/ update "$hg_rev" - (cd tests; python3 /ci/repos/mercurial/tests/run-tests.py --color=always) tests-py3-pure: image: octobus/ci-py3-hgext3rd script: - hg pull -R /ci/repos/mercurial/ - - hg -R /ci/repos/mercurial/ update `hg log -r . -T '{branch}'` + - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')") + - hg -R /ci/repos/mercurial/ update "$hg_rev" - (cd tests; python3 /ci/repos/mercurial/tests/run-tests.py --color=always --pure) diff -r 191ed83dbc07 -r ba683c5fe932 docs/sharing.rst --- a/docs/sharing.rst Mon Nov 18 14:33:59 2019 +0700 +++ b/docs/sharing.rst Wed Dec 04 11:00:00 2019 +0100 @@ -686,7 +686,10 @@ Figure 10 shows how Bob's repository looks now. - [figure SG10: only one visible head, 7:aa82, successor to hidden 5:541f and 6:e3a5] +.. figure:: figures/figure-sg10.svg + + Figure 10: only one visible head, 7:aa82, successor to hidden 5:541f and + 6:e3a5 We carefully dodged a merge conflict by specifying a merge tool (``internal:other``) that will take Alice's changes over Bob's. (You diff -r 191ed83dbc07 -r ba683c5fe932 hgext3rd/evolve/__init__.py --- a/hgext3rd/evolve/__init__.py Mon Nov 18 14:33:59 2019 +0700 +++ b/hgext3rd/evolve/__init__.py Wed Dec 04 11:00:00 2019 +0100 @@ -765,7 +765,7 @@ node = ctx.node() isobs = ctx.obsolete() - def warnobsolete(): + def warnobsolete(*args): _warnobsoletewc(ui, repo, node, isobs) wlock = None try: diff -r 191ed83dbc07 -r ba683c5fe932 tests/testlib/map-hg-rev.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/testlib/map-hg-rev.sh Wed Dec 04 11:00:00 2019 +0100 @@ -0,0 +1,15 @@ +#!/bin/sh +set -eu + +case $1 in + default) + echo default + ;; + mercurial-*) + exp=$(echo "$1" | cut -d- -f2 | sed 's#\.#\\.#g') + echo 'max(tag("re:^'"$exp"'"))' + ;; + *) + echo stable + ;; +esac