Commit Graph

3 Commits

Author SHA1 Message Date
Jun Wu
6e33b70c43 tests: fix flaky test-revert-status.t
Summary:
If the first "hg update" command runs slower for whatever reason, the
dirstate won't have "unset" mtimes.

Reviewed By: mitrandir77

Differential Revision: D8166760

fbshipit-source-id: 6d9dafc13ccf54f449e204da02dce669221b38c4
2018-05-25 13:03:57 -07:00
Jun Wu
39bda34869 revert: fix status issue when reverting to non-parent revision
Summary:
When reverting to non-parent revision, the reverted files should be marked
as "need content check" anyway. The code should not depend on the fact the
mtime of the reverted files is usually "fsnow".

Reviewed By: DurhamG

Differential Revision: D8123136

fbshipit-source-id: d602ee06408701c0190c142f1ea4e0ff6247fe62
2018-05-23 16:10:05 -07:00
Jun Wu
03a664afdf revert: add a test showing status could be wrong
Summary: The test explains it.

Reviewed By: DurhamG

Differential Revision: D8123137

fbshipit-source-id: 673dad35e0f917788c8af6eaa2b6ea09508b136a
2018-05-23 16:10:05 -07:00