Commit Graph

11 Commits

Author SHA1 Message Date
Muir Manders
1caeb25d0a status: enable rust status in more tests
Summary:
These tests just needed to switch to a modern, non-revlog repo format.

Remaining tests using the old status have the same problem, but are trickier to migrate due more complicated client/server interactions.

Reviewed By: quark-zju

Differential Revision: D42748903

fbshipit-source-id: 979720cff4e72de586c90d922694d4d88c130b2f
2023-01-31 12:25:37 -08:00
Durham Goode
6b0448a753 treestate: use the Rust constructed TreeState from Python
Summary:
Now that Rust creates and persists a TreeState, let's change Python to
use it instead of creating it's own.

Differential Revision: D39715993

fbshipit-source-id: 1e40df3b8f4710068b563b3e2802935b1d829e8b
2022-09-28 09:28:48 -07:00
Durham Goode
e1902f50bb status: enable the rust status command in most tests
Summary:
Most tests pass with the Rust status command enabled. Let's enable it,
then just turn it off for the still broken tests.

Reviewed By: jordanwebster

Differential Revision: D39487346

fbshipit-source-id: a212868415b4ea30116055b3279a139bdaa25aed
2022-09-16 15:07:21 -07:00
Jun Wu
b64156f1a7 testing: work with "missing cwd" cases
Summary:
Some tests removes the current directory, making `os.getcwd()` raise.

In those cases, just ignore the `os.getcwd()` error to make debugruntest
compatible with the tests.

Differential Revision: D38815651

fbshipit-source-id: 58f22ac8116e1a36e206904b6219aaed83b77c9a
2022-09-13 11:51:49 -07:00
Andrey Chursin
987e6426fc checkout: print removed cwd warning in nativecheckout
Summary:
This warning was printed by old checkout, keeping it in nativecheckout too
The warning tells user that current working directory was removed during checkout

This diff also makes test-update-names.t to use nativecheckout. Otherwise last test fails on remote repo, because pyworker does not emit the deleted cwd warning

Reviewed By: quark-zju

Differential Revision: D26558188

fbshipit-source-id: 1f6ea2ea1ac7358ce2f06fed25069656481b30e6
2021-02-20 01:29:11 -08:00
Andrey Chursin
d8e40c89a0 tests: test-update-names.t to use remoterepo
Summary: After this update, test-update-names.t tests are using native checkout when congfig is set

Reviewed By: quark-zju

Differential Revision: D26558186

fbshipit-source-id: f70f65344b5f2209f313e3edd5fd7f541318459a
2021-02-20 01:29:10 -08:00
Jun Wu
026bd9f950 tests: avoid some rev numbers in revsets
Summary: Done by the fix-revnum.py script.

Reviewed By: singhsrb

Differential Revision: D24173575

fbshipit-source-id: e4cf417be759f9898adfd4102984098474ab38a2
2020-10-08 11:08:37 -07:00
Durham Goode
aac5ebea17 py3: remove #require py2 from passing tests
Summary: These now pass

Reviewed By: xavierd

Differential Revision: D19669584

fbshipit-source-id: dd4d374c3b373367138408ae86563ae44849690c
2020-01-31 13:46:59 -08:00
Zeyi (Rice) Fan
92f6f35e7a mark all tests requiring Python 2
Summary:
This diff marks **ALL** mercurial tests requiring Python 2 feature.

After you fixes some tests, simply remove the `py2` feature requirement and that tests will be continuously run after your diff is landed.

To bypass this feature requirement, run the tests command with `HGTEST_FORCE_PY2=1`. For example:

```
HGTEST_FORCE_PY2=1 buck test //eden/scm/tests:hg_run_tests
```

or

```
HGTEST_FORCE_PY2=1 python run-tests.py
```

----

Basically this diff are created with the following commands:

```
$ sed -i 's/import feature\(.*\)$/import feature\1\n\nfeature.require(["py2"])/' test-*-t.py
$ sed -i '1s/^/#require py2\n/' test-*.t
$ ls | grep -P "^test.*(?<\!-t)\.py$" > list && vim -p $(cat list)
# manually adding feature requires for these Python tests.
```

(Note: this ignores all push blocking failures!)

ignore-conflict-markers

Reviewed By: singhsrb

Differential Revision: D19655148

fbshipit-source-id: 985e3ccb4010cc559049f1d89f8909bc2d9b5e20
2020-01-30 18:49:21 -08:00
Jun Wu
75a8173a10 tests: enable chg for 572 tests
Summary:
Add `#chg-compatible` to 572 tests that seem to pass with chg enabled.
This should make them run faster.

Reviewed By: xavierd

Differential Revision: D18870507

fbshipit-source-id: fe895e733efffc9286cd3d17c7a156c803124395
2019-12-09 15:26:29 -08:00
Adam Simpkins
ab3a7cb21f Move fb-mercurial sources into an eden/scm subdirectory.
Summary:
In preparation for merging fb-mercurial sources to the Eden repository,
move everything from the top-level directory into an `eden/scm`
subdirectory.
2019-11-13 16:04:48 -08:00