mergestate: use dirstate.update_file API in recordupdates() [WIP]

Also introduces another function so should be split.
15 jobs for topic/default/dirstate-update-API-pulkit in 31 minutes and 30 seconds (queued for 23 minutes and 40 seconds)
Status Job ID Name Coverage
  Tests
manual check-pytype-py3 #215570
allowed to fail manual
failed checks-py2 #215557

00:04:31

failed checks-py3 #215558

00:06:17

passed rust-cargo-test-py2 #215559

00:01:46

passed rust-cargo-test-py3 #215560

00:03:48

failed test-py2 #215561

00:29:14

failed test-py2-chg #215568

00:25:06

failed test-py2-pure #215563

00:19:19

failed test-py2-rust #215565

00:26:11

failed test-py3 #215562

00:17:45

failed test-py3-chg #215569

00:13:16

failed test-py3-pure #215564

00:14:28

failed test-py3-rhg #215567

00:23:40

failed test-py3-rust #215566

00:16:46

 
  Phabricator
skipped phabricator-refresh #215571
 
Name Stage Failure
failed
test-py3-chg Tests
Skipped test-wireproto-command-capabilities.t: system supports running with chg
Failed test-graft.t: output changed
Failed test-merge-changedelete.t#newfilenode: output changed
Failed test-merge-changedelete.t#old: output changed
Failed test-merge-force.t: output changed
# Ran 886 tests, 98 skipped, 4 failed.
python hash seed: 2768651845
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
test-py2-chg Tests
Skipped test-wireproto-command-capabilities.t: system supports running with chg
Failed test-graft.t: output changed
Failed test-merge-changedelete.t#newfilenode: output changed
Failed test-merge-changedelete.t#old: output changed
Failed test-merge-force.t: output changed
# Ran 892 tests, 92 skipped, 4 failed.
python hash seed: 3465836207
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
test-py3-rhg Tests
Skipped test-verify-repo-operations.py: missing feature: allow slow tests (use --allow-slow-tests)
Failed test-graft.t: output changed
Failed test-merge-changedelete.t#newfilenode: output changed
Failed test-merge-changedelete.t#old: output changed
Failed test-merge-force.t: output changed
# Ran 924 tests, 60 skipped, 4 failed.
python hash seed: 2523277610
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
test-py3-rust Tests
Skipped test-verify-repo-operations.py: missing feature: allow slow tests (use --allow-slow-tests)
Failed test-graft.t: output changed
Failed test-merge-changedelete.t#newfilenode: output changed
Failed test-merge-changedelete.t#old: output changed
Failed test-merge-force.t: output changed
# Ran 923 tests, 61 skipped, 4 failed.
python hash seed: 4227312087
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
test-py2-rust Tests
Skipped test-verify-repo-operations.py: missing feature: allow slow tests (use --allow-slow-tests)
Failed test-graft.t: output changed
Failed test-merge-changedelete.t#newfilenode: output changed
Failed test-merge-changedelete.t#old: output changed
Failed test-merge-force.t: output changed
# Ran 929 tests, 55 skipped, 4 failed.
python hash seed: 2952550759
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
test-py3-pure Tests
Skipped test-verify-repo-operations.py: missing feature: allow slow tests (use --allow-slow-tests)
Failed test-graft.t: output changed
Failed test-merge-changedelete.t#newfilenode: output changed
Failed test-merge-changedelete.t#old: output changed
Failed test-merge-force.t: output changed
# Ran 904 tests, 80 skipped, 4 failed.
python hash seed: 175678220
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
test-py2-pure Tests
Failed test-graft.t: output changed
Failed test-merge-changedelete.t#newfilenode: output changed
Failed test-merge-changedelete.t#old: output changed
Failed test-merge-force.t: output changed
# Ran 910 tests, 74 skipped, 4 failed.
python hash seed: 196667899
Running after_script
Uploading artifacts for failed job
ERROR: Job failed: exit code 1
failed
test-py3 Tests
Failed test-graft.t: output changed
Failed test-merge-changedelete.t#newfilenode: output changed
Failed test-merge-changedelete.t#old: output changed
Failed test-merge-force.t: output changed
Failed test-wireproto-exchangev2-shallow.t: output changed
# Ran 907 tests, 77 skipped, 5 failed.
python hash seed: 3995227151
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
test-py2 Tests
Failed test-graft.t: output changed
Failed test-merge-changedelete.t#newfilenode: output changed
Failed test-merge-changedelete.t#old: output changed
Failed test-merge-force.t: output changed
Failed test-share.t#safe: timed out
# Ran 913 tests, 71 skipped, 5 failed.
python hash seed: 1021619476
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
checks-py3 Tests
  0.029  25.820  55.210   6.010  25.791   test-check-config.t
0.185 27.032 296.990 9.250 26.847 test-check-format.t
0.024 28.928 316.860 9.720 28.904 test-check-module-imports.t
0.000 66.826 366.690 10.370 66.826 test-check-code.t
0.038 67.273 416.200 10.790 67.235 test-check-pyflakes.t
0.131 93.214 830.400 31.820 93.084 test-check-cargo-lock.t
0.094 114.180 926.750 34.040 114.086 test-check-pylint.t
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
checks-py2 Tests
  0.003  37.255  43.770  17.660  37.252   test-check-module-imports.t
0.017 38.128 279.310 21.840 38.111 test-check-format.t
0.004 39.565 299.640 22.560 39.562 test-check-config.t
0.004 45.386 331.960 23.400 45.382 test-check-pyflakes.t
0.000 60.340 371.900 24.450 60.340 test-check-code.t
0.012 87.506 739.680 45.420 87.494 test-check-cargo-lock.t
0.011 89.280 811.250 47.270 89.269 test-check-pylint.t
Cleaning up file based variables
ERROR: Job failed: exit code 1