Read about our upcoming Code of Conduct on this issue

precheck: fix false warning about content-divergence creation

Before this patch, if we try to `hg prune` (without any successors) an
already obsoleted cset which has at least one successor, it would false
warn about new content-divergence. As we know pruning cset without any
successors can not create any divergence.

--HG--
branch : stable
17 jobs for topic/stable/fix-precheck in 51 minutes and 27 seconds (queued for 4 seconds)
Status Name Job ID Coverage
  Tests
failed check-pytype-py3 #271415

00:29:50

failed checks-py2 #271402

00:07:08

failed checks-py3 #271403

00:06:35

passed rust-cargo-test-py2 #271404

00:05:10

passed rust-cargo-test-py3 #271405

00:05:12

passed test-py2 #271406

00:42:34

passed test-py2-chg #271413

00:51:19

passed test-py2-pure #271408

00:41:06

failed test-py2-rust #271410

00:23:34

passed test-py3 #271407

00:15:00

passed test-py3-chg #271414

00:11:18

passed test-py3-pure #271409

00:13:27

failed test-py3-rhg #271412

00:28:00

passed test-py3-rust #271411

00:17:14

manual windows-py3 #271416
windows allowed to fail manual
manual windows-py3-pyox #271417
windows allowed to fail manual
 
  Phabricator
skipped phabricator-refresh #271418
 
Name Stage Failure
failed
check-pytype-py3 Tests
 --allow-slow-tests tests/test-check-pytype.t
$ HGTESTS_ALLOW_NETIO="$TEST_HGTESTS_ALLOW_NETIO" HGMODULEPOLICY="$TEST_HGMODULEPOLICY" "$PYTHON" tests/run-tests.py --color=always $RUNTEST_ARGS
running 1 tests using 1 parallel processes
t
Failed test-check-pytype.t: timed out
# Ran 1 tests, 0 skipped, 1 failed.
python hash seed: 2677331601
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
test-py3-rhg Tests
Skipped test-sparse-revlog.t: missing artifact, run "/tmp/mercurial-ci/tests/artifacts/scripts/generate-churning-bundle.py"
Skipped test-ssh-repoerror.t: system supports running with rhg as 'hg'
Skipped test-verify-repo-operations.py: missing feature: allow slow tests (use --allow-slow-tests)
Failed test-basic.t: output changed
# Ran 922 tests, 63 skipped, 1 failed.
python hash seed: 4232482380
Cleaning up file based variables
nothing to do
ERROR: Job failed: exit code 1
failed
test-py2-rust Tests
Skipped test-sparse-fsmonitor.t: skipped
Skipped test-sparse-revlog.t: missing artifact, run "/tmp/mercurial-ci/tests/artifacts/scripts/generate-churning-bundle.py"
Skipped test-verify-repo-operations.py: missing feature: allow slow tests (use --allow-slow-tests)
Failed test-remotefilelog-prefetch.t: output changed
# Ran 930 tests, 55 skipped, 1 failed.
python hash seed: 1122759636
Running after_script
Uploading artifacts for failed job
ERROR: Job failed: exit code 1
failed
checks-py2 Tests
 15.104  53.206 268.940  10.870  38.103   test-check-format.t
0.006 39.692 72.980 11.660 39.686 test-check-config.t
0.007 51.753 109.430 12.470 51.746 test-check-pyflakes.t
0.002 61.555 325.830 16.130 61.554 test-check-code.t
0.017 87.689 396.130 17.690 87.672 test-check-pylint.t
8.996 132.106 729.700 41.080 123.110 test-check-cargo-lock.t
Cleaning up file based variables
nothing to do
ERROR: Job failed: exit code 1
failed
checks-py3 Tests
  0.002  19.761  47.180   5.240  19.759   test-check-module-imports.t
1.191 25.063 198.370 6.610 23.873 test-check-format.t
0.007 37.727 234.890 7.800 37.719 test-check-pyflakes.t
0.001 43.388 274.140 8.380 43.387 test-check-code.t
0.016 71.920 339.920 9.610 71.904 test-check-pylint.t
0.156 101.427 658.680 34.230 101.271 test-check-cargo-lock.t
Cleaning up file based variables
nothing to do
ERROR: Job failed: exit code 1