sapling/eden/integration/hg
Michael Bolin 95fd684e2e Both ENOTDIR and ENOENT should be ignored when stat'ing a possibly missing file.
Summary:
There is logic in `eden_dirstate.walk()` that looks to see if any of the files
that are reported as "removed" by `hg status` are still on disk, and if so,
should be considered for a walk. Because the files are likely removed, we were
catching `ENOENT` for a failed `os.stat()`, but we also needed to be catching
`ENOTDIR`. This turned out to be the reason `hg add` was failing in a specific
case, for which we already had an integration test, but it wasn't passing until
now.

Reviewed By: simpkins

Differential Revision: D6207233

fbshipit-source-id: 44e5252bb0130ca279160f0a64286053fa5509d5
2017-11-01 20:49:44 -07:00
..
lib Add some extra assertions to GraftTest. 2017-10-30 21:38:14 -07:00
absorb_test.py flush pending transaction data in eden_dirstate_map.setparents() 2017-10-27 14:26:30 -07:00
add_test.py Both ENOTDIR and ENOENT should be ignored when stat'ing a possibly missing file. 2017-11-01 20:49:44 -07:00
branch_test.py update integration tests to support multiple hg configs 2017-08-23 18:49:33 -07:00
commit_test.py update integration tests to support multiple hg configs 2017-08-23 18:49:33 -07:00
copy_test.py Add integration test for hg move. 2017-08-24 14:23:38 -07:00
debug_hg_dirstate_test.py Introduce eden debug hg_dirstate command. 2017-10-25 22:36:06 -07:00
diff_test.py update integration tests to support multiple hg configs 2017-08-23 18:49:33 -07:00
graft_test.py Add some extra assertions to GraftTest. 2017-10-30 21:38:14 -07:00
grep_test.py Fix hg grep so it can be run over the entire repo. 2017-09-13 17:51:19 -07:00
histedit_test.py Fix bug where hg histedit --abort does not restore file as "normal". 2017-10-12 19:28:11 -07:00
merge_test.py Create fix and test for hg merge. 2017-10-09 11:55:34 -07:00
move_test.py Add integration test for hg move. 2017-08-24 14:23:38 -07:00
README.md move integration tests to eden/integration 2017-01-31 14:41:14 -08:00
rebase_test.py Fixed a bug in how we update the dirstate upon a snapshot change. 2017-09-08 19:25:34 -07:00
revert_test.py update integration tests to support multiple hg configs 2017-08-23 18:49:33 -07:00
rm_test.py update integration tests to support multiple hg configs 2017-08-23 18:49:33 -07:00
rollback_test.py Update RollbackTest to reflect error message change in Mercurial. 2017-09-19 19:14:43 -07:00
split_test.py Include the dirstate tuples and copymap when backing up the dirstate. 2017-10-25 22:36:06 -07:00
status_test.py update integration tests to support multiple hg configs 2017-08-23 18:49:33 -07:00
TARGETS don't run all integration tests in both build modes 2017-07-07 16:01:33 -07:00
undo_test.py flush kernel caches properly for empty directories removed by checkout 2017-10-25 16:51:56 -07:00
update_test.py Add p and pr to the list of potential merge actions when dealing with conflicts. 2017-10-31 12:24:16 -07:00

Integration tests in this directory are specific to the Eden extension for Mercurial.

Most tests will want to subclass HgExtensionTestBase.