# HG changeset patch # User Martin von Zweigbergk # Date 2020-03-05 18:46:31 # Node ID 8cdd0b9629e3dbfb54199b8db58c4bc7f019dadf # Parent d543ef183eb8d5092f18b4200ddea1f964f44edc # Parent b24721e7c5ee90c31d12462109c75b0389a9df84 merge with stable diff --git a/contrib/heptapod-ci.yml b/contrib/heptapod-ci.yml --- a/contrib/heptapod-ci.yml +++ b/contrib/heptapod-ci.yml @@ -10,13 +10,14 @@ before_script: variables: PYTHON: python + TEST_HGMODULEPOLICY: "allow" .runtests_template: &runtests script: - cd tests/ - echo "python used, $PYTHON" - echo "$RUNTEST_ARGS" - - $PYTHON run-tests.py --color=always $RUNTEST_ARGS + - HGMODULEPOLICY="$TEST_HGMODULEPOLICY" "$PYTHON" run-tests.py --color=always $RUNTEST_ARGS checks-py2: <<: *runtests @@ -43,29 +44,34 @@ test-py2: <<: *runtests variables: RUNTEST_ARGS: "--blacklist /tmp/check-tests.txt" + TEST_HGMODULEPOLICY: "c" test-py3: <<: *runtests variables: RUNTEST_ARGS: "--blacklist /tmp/check-tests.txt" PYTHON: python3 + TEST_HGMODULEPOLICY: "c" test-py2-pure: <<: *runtests variables: RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt" + TEST_HGMODULEPOLICY: "py" test-py3-pure: <<: *runtests variables: RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt" PYTHON: python3 + TEST_HGMODULEPOLICY: "py" test-py2-rust: <<: *runtests variables: HGWITHRUSTEXT: cpython RUNTEST_ARGS: "--blacklist /tmp/check-tests.txt" + TEST_HGMODULEPOLICY: "rust+c" test-py3-rust: <<: *runtests @@ -73,3 +79,4 @@ test-py3-rust: HGWITHRUSTEXT: cpython RUNTEST_ARGS: "--blacklist /tmp/check-tests.txt" PYTHON: python3 + TEST_HGMODULEPOLICY: "rust+c" diff --git a/hgext/histedit.py b/hgext/histedit.py --- a/hgext/histedit.py +++ b/hgext/histedit.py @@ -1860,10 +1860,7 @@ def histedit(ui, repo, *freeargs, **opts # kludge: _chistedit only works for starting an edit, not aborting # or continuing, so fall back to regular _texthistedit for those # operations. - if ( - ui.interface(b'histedit') == b'curses' - and _getgoal(opts) == goalnew - ): + if ui.interface(b'histedit') == b'curses' and _getgoal(opts) == goalnew: return _chistedit(ui, repo, freeargs, opts) return _texthistedit(ui, repo, freeargs, opts) diff --git a/rust/hg-cpython/src/ancestors.rs b/rust/hg-cpython/src/ancestors.rs --- a/rust/hg-cpython/src/ancestors.rs +++ b/rust/hg-cpython/src/ancestors.rs @@ -126,7 +126,12 @@ py_class!(pub class LazyAncestors |py| { py_class!(pub class MissingAncestors |py| { data inner: RefCell>>; - def __new__(_cls, index: PyObject, bases: PyObject) -> PyResult { + def __new__( + _cls, + index: PyObject, + bases: PyObject + ) + -> PyResult { let bases_vec: Vec = rev_pyiter_collect(py, &bases)?; let inner = CoreMissing::new(pyindex_to_graph(py, index)?, bases_vec); MissingAncestors::create_instance(py, RefCell::new(Box::new(inner)))