Commit Graph

68234 Commits

Author SHA1 Message Date
Stanislau Hlebik
7221a52147 mononoke: add new idx flag
Summary:
It was added on the client side in D30686450 (7eb11cb392) to handle octopus merges correctly,
let's add it on mononoke as well, otherwise new_streaming_clone fails to parse
a revlog.

Reviewed By: mitrandir77

Differential Revision: D31305651

fbshipit-source-id: 976d7fdb8775f859e4732fd8a68f9b28f04ce4f9
2021-09-30 07:01:03 -07:00
Jan Mazur
21bb613c25 unix domain socket support for httpclient.HTTPConnection
Summary: This implements unix socket support for mercurial's HTTPConnection so commitcloud can use it.

Reviewed By: ahornby

Differential Revision: D31229256

fbshipit-source-id: a610c3c34be608ac2d9b41f3a7b6b62b44227b94
2021-09-30 05:56:44 -07:00
Qinfan Wu
dbac51105d Fix broken builds caused by rand upgrade
Summary:
A previous commit updated `rand` from 0.7 to 0.8. One breaking change introduced was that `Alphanumeric` now samples `u8` instead of `char`.

See https://docs.rs/rand/0.7.3/rand/distributions/struct.Alphanumeric.html and https://docs.rs/rand/0.8.4/rand/distributions/struct.Alphanumeric.html.

Reviewed By: bolinfest

Differential Revision: D31298553

fbshipit-source-id: 5d0d588550f17bac5ca4788748ec3f873398bf35
2021-09-29 23:09:58 -07:00
svcscm svcscm
793323f857 Updating submodules
Summary:
GitHub commits:

a2710c8256
31751ed269
2be1efed23
7101e5fad5

Reviewed By: wittgenst

fbshipit-source-id: 18fe6dd75f8322d156536d773bad02b975bf6516
2021-09-29 21:58:19 -07:00
svcscm svcscm
340f1edd92 Updating submodules
Summary:
GitHub commits:

58e7151da3
003afda2ce
c4ab8a737c
01e448f1ed
bd5640a143
179c8b016d

Reviewed By: wittgenst

fbshipit-source-id: c544fead29bc2528d2f2a5f80b0ab4da1073839e
2021-09-29 21:10:16 -07:00
svcscm svcscm
b465c251a8 Updating submodules
Summary:
GitHub commits:

5559a2f234
4acf62fc72
5ef3caff84
71886bec37
1992a62699
5fa6c38e62
dea6ebc3c1
e698ad9fe9
d772e97719
d37ba47550
78159a9950

Reviewed By: wittgenst

fbshipit-source-id: 40e522fdddbde0ae0bce9f9f1f49a8f947124ee1
2021-09-29 20:12:36 -07:00
svcscm svcscm
c26708ff69 Updating submodules
Summary:
GitHub commits:

3a65a7f4b9
51b2d6b6cc
d4b0450fae
9c971e4227
a28e0dcc53
fd5050adb7
152aaa18a8
d62594cf4b
6ffe4aeed3
c5ac795fc2
f942b6efa6
29b1da03d2
4efac2bc55

Reviewed By: wittgenst

fbshipit-source-id: 9a5466eccfc782ea11befab93d2896815c065adc
2021-09-29 19:33:48 -07:00
svcscm svcscm
3668b6c5be Updating submodules
Summary:
GitHub commits:

8bc9a09f0d
ce9b3c14a0
1ecb4c7e0e
bc254c2a48
81dff935b2
46a757b173
206f59d9c9
ccb83f946a
cf555ff39e
1888ce86ab
58b48cf8d5
fbdfedb7d4
96e7cd8446

Reviewed By: wittgenst

fbshipit-source-id: 8a231e0b106913629cde99e6cd8e28a812a3b839
2021-09-29 18:42:31 -07:00
svcscm svcscm
dab4763458 Updating submodules
Summary:
GitHub commits:

951cdd735c
5b708efab9
1ab910dfd1
e652b1b292
363ffc8314
2acffecca1
9be7d89369
b079c258d0
7ebdd68e4e
32ed23ba1b
2bc7412932
3ee512f7ad
904aff8fed
5182c6e800
625e8ae422

Reviewed By: wittgenst

fbshipit-source-id: 1cf5e33f50e0b2157b7e32ddb23183e6ed984bbd
2021-09-29 18:04:04 -07:00
Egor Tkachenko
0bfc399700 Map requests to shared future for derivation.
Summary:
We want to reduce duplicated work. Since requests will be consistently hashed, each instance of service will receive some set of requests from multiple clients. By storing requests together with shared future derivation, any client can get the state of derivation.
In addition upon receiving requests we can clean up the map to remove already completed futures so the map will not grow indefinitely.

Reviewed By: StanislavGlebik

Differential Revision: D30776322

fbshipit-source-id: 961055f8b3328378451edd677506d7e716a9afd2
2021-09-29 16:10:04 -07:00
Muir Manders
e50031478a runlog: include progress information
Summary:
Now the runlog for an hg command invocation includes any progress bar metadata. I repurposed the existing rust progress thread to also upate the runlog progress (only if it has changed).

To avoid race conditions with the main thread writing the final "exit" runlog entry, updating the runlog progress is a no-op if the runlog's exit code has already been set.

Reviewed By: quark-zju

Differential Revision: D31065260

fbshipit-source-id: 181661cb06ab2910d8a0e41f5aa767528eb234f5
2021-09-29 16:05:37 -07:00
Muir Manders
2b956bae49 hgcommands: start of "runlog" command tracking
Summary:
The runlog's purpose is to store live information for every hg invocations. Users/VSCode will access the runlog data to see details about active hg commands.

In this initial commit I've added basic start/end updates to the runlog. The only current storage option is JSON files written to ".hg/runlog/<random ID>". Cleanup of the files will be added later. In the future I may look at sqlite as an alternative.

Set runlog.enable=True to turn on the runlog.

Reviewed By: quark-zju

Differential Revision: D31065258

fbshipit-source-id: 3ff29e1b8473f7e0b6b0d02537d1f18c2c5026fb
2021-09-29 16:05:37 -07:00
Zeyi (Rice) Fan
b76da76b9b tweak error message on Windows when repo is not mounted to avoid confusing people
Summary:
The old message was a little misleading as in some case EdenFS was running while it couldn't mount the repository. Mercurial will still tell the user that EdenFS is not running. It is not accurate.

The new message is trying to cover this case to avoid confusing people.

Reviewed By: zhengchaol

Differential Revision: D31278947

fbshipit-source-id: dd3e599654390269b6cf31d8842105970cb29cc0
2021-09-29 15:40:02 -07:00
Victor Gao
ae87b82eaf update rand and quickcheck
Summary:
This updates the following crates to their latest versions:
- `rand`: 0.7 => 0.8
- `quickcheck`: 0.9 => 1.0

Both crates introduced some breaking changes, so affected clients had to be fixed accordingly. Most changes are rather mechanical and shouldn't change the existing logic. In addition, a few buggy property tests were uncovered, presumably due to `quicktest` becoming smarter with its choice of inputs in the newer version, and the fixes are included in this diff.

Reviewed By: yancouto

Differential Revision: D31115820

fbshipit-source-id: 60a61dfac3236fd93cd4f03b86506654d81d330f
2021-09-29 13:59:49 -07:00
svcscm svcscm
fa22c3c1d2 Updating submodules
Summary:
GitHub commits:

c5af40ba20
ce0233912b
2574bb124d
a2943c199c
04203f33e4
a70015534a
f0336e64c0
4d5d29fa1f
f3ff21150a
fc4f81d774
8bcfd8cd15
f514723db5

Reviewed By: wittgenst

fbshipit-source-id: 9742ad3a1624cdcf06c8a3f8eeddc5ee5c254663
2021-09-29 13:13:37 -07:00
svcscm svcscm
b17cee0d5c Updating submodules
Summary:
GitHub commits:

c1009bad78
7cf7e405f9
f8d4d45b3a
9cad4956c2
eb23c5b408
61a63ae2f9
2ba22df462
736798268d
735e9f2f0a
d51fefe4c5
6dbe0906c7
4846d215e8
694c8d2956
031066cb33
fd7933e560

Reviewed By: wittgenst

fbshipit-source-id: ab6c85695f5e3df8167f9a13f8d07401c4ab9452
2021-09-29 12:20:48 -07:00
Zeyi (Rice) Fan
d20657bfc4 integration: teach integration test to arrange real edenfsctl via environ
Reviewed By: xavierd

Differential Revision: D30819280

fbshipit-source-id: de14ccb13ddec8ce90b0fa7d2aa987ea50f14d43
2021-09-29 10:02:09 -07:00
Zeyi (Rice) Fan
3921cd1872 cli_rs: fix health test, enable Rust edenfsctl in tests
Summary: This diff fixes some integration test errors after enabling the new edenfsctl.

Reviewed By: xavierd

Differential Revision: D30789741

fbshipit-source-id: 02d74defc41def4fb6ea0cc4694f944b4c0044e2
2021-09-29 10:02:09 -07:00
Zeyi (Rice) Fan
8a4fc086bc cli_rs: hide incomplete commands, fix help message
Summary:
Some detail polishing.

Incomplete commands are commented out. Help messages are now printed correctly. Fixed a small behavior divergence in `eden config` (`to_string_pretty` uses multi-line string instead of escaping characters).

Reviewed By: xavierd

Differential Revision: D30547011

fbshipit-source-id: 98d323744ce7a7fc989cbf79dd07ed8af3cee09d
2021-09-29 10:02:09 -07:00
Zeyi (Rice) Fan
3e551e4033 cmake: build edenfsctl Rust
Summary: This diff adds the Rust edenfsctl to our open source build.

Reviewed By: xavierd

Differential Revision: D30788685

fbshipit-source-id: 603caa933ecfc5af0ede7e22f6c7911462da3a65
2021-09-29 10:02:09 -07:00
Yan Soares Couto
281fa1a5e8 Fix lookup of content ids
Summary:
The lookup of content ids was not working as expected.

Reasons:
- If content id was provided, we never checked it was actually on the blobstore, and failed when building the metadata for it. This was happening since D30016963 (f64520a312)

This diff fixes that by explicitly checking it exists. I also added some comments to clarify.

Reviewed By: liubov-dmitrieva, StanislavGlebik

Differential Revision: D31268102

fbshipit-source-id: 9801a7f4ce1536e68f44ebe114087e53cf094d7a
2021-09-29 09:16:45 -07:00
svcscm svcscm
ed4b2b5a84 Updating submodules
Summary:
GitHub commits:

b4c42bfc04
e4ba5435d7
4cd4370847
70820b7d58

Reviewed By: wittgenst

fbshipit-source-id: 4280bea4b331d0501a57c5db6e2e1ca1f19e9145
2021-09-29 08:33:51 -07:00
svcscm svcscm
ac01a3ec59 Updating submodules
Summary:
GitHub commits:

6e72de3916
97def6d11b
4ffc1e49c4
aecc142658
ae8fb8d893
b8c4579e95

Reviewed By: wittgenst

fbshipit-source-id: 1b735ec85dec37b650918e09b3c43ae8d196d771
2021-09-29 07:52:57 -07:00
svcscm svcscm
586786bbb2 Updating submodules
Summary:
GitHub commits:

369e0f9c03
8826537965
448619869b
7a52f6cb71
21b1a77bd7
1e8165968d
43519f0f58
4f49a1cbfc
7665a5e0ab

Reviewed By: wittgenst

fbshipit-source-id: a3714782482acd17ffd7b9f420dd680e8ef88848
2021-09-29 07:03:31 -07:00
svcscm svcscm
f3e54456c5 Updating submodules
Summary:
GitHub commits:

ced235202d
418c1b9cf1
b3d698cfc8
d20b1b6f6e
01516082b8
201383dfea
bca6910084
982e0eeca5
0834565bca
e9b0e00136

Reviewed By: wittgenst

fbshipit-source-id: 4201a21fa76b52704b2eba39c6c8d75190fc5955
2021-09-29 05:55:29 -07:00
svcscm svcscm
c74550f963 Updating submodules
Summary:
GitHub commits:

ea7aeab585
13ae16c315

Reviewed By: wittgenst

fbshipit-source-id: da19628b8e7e520d877c30e56503ad1f2aa42928
2021-09-29 05:11:08 -07:00
Jan Mazur
3f65b4bf12 pass CATs to verify_integrity hook
Summary: Pass encoded CATs to verify_identity hook.

Reviewed By: krallin

Differential Revision: D31146822

fbshipit-source-id: aa977708a2aaa2c6452434c121e7dcd817eb1cf2
2021-09-29 04:21:10 -07:00
svcscm svcscm
8156ba4bc2 Updating submodules
Summary:
GitHub commits:

f07542e6e1

Reviewed By: wittgenst

fbshipit-source-id: fb313bc0a44eba29ee2a41f1ce32777771f15e6a
2021-09-29 03:32:13 -07:00
svcscm svcscm
b7f9ce3a65 Updating submodules
Summary:
GitHub commits:

95cfeb5b4a
56ba584f98
38f9635d5f
e3c3277dcf

Reviewed By: wittgenst

fbshipit-source-id: 7f709d76e679648ffd29b5e67b22787ff949186e
2021-09-29 02:55:56 -07:00
svcscm svcscm
3dd34244cb Updating submodules
Summary:
GitHub commits:

955d22c54c
a3075b752a
12ec2780b2
d9aefce005
cf7b411dd6
1e0c83e9b1

Reviewed By: wittgenst

fbshipit-source-id: 99f8f46d6e83c00a63417e9da5c9ebbeffc00f34
2021-09-29 02:19:28 -07:00
CodemodService Bot
72afeb5e25 Daily common/rust/cargo_from_buck/bin/autocargo
Reviewed By: krallin

Differential Revision: D31263556

fbshipit-source-id: 328dc86009dd5789f4adba3f70028f0b9ae9ff24
2021-09-29 02:01:20 -07:00
svcscm svcscm
26774adf5a Updating submodules
Summary:
GitHub commits:

a5091b60d6
fbffa1efe7
b5204901a4
62042516e7
28d68138a7
7233de07d1
76b43cac1d
79b60ad3cd
72124c5862

Reviewed By: wittgenst

fbshipit-source-id: 88f225cebfea71d8bdd128d5e8e5e66441b80bc0
2021-09-29 01:51:32 -07:00
svcscm svcscm
9e0922e410 Updating submodules
Summary:
GitHub commits:

f61a061ca6
1048fb6709
ca049f790a
9f14351f8d
d7c32cde0b
a9f20a4597
5de04ec4d8
9e8546e2b6
c357c4fe30
8b4957d647
f5179498e7

Reviewed By: wittgenst

fbshipit-source-id: 0b1ba06eacdff03045034a42f462d7d0ad0ddea7
2021-09-29 00:38:25 -07:00
svcscm svcscm
a93576b008 Updating submodules
Summary:
GitHub commits:

b4d9fa2e4a
8d2ff653bb
39c4ed97e8
8ccd13f01d
f8a0f05405
b39cfdf9a1
3ed511fcc9
2bb14fd0c8
923178aeca
c0b443ab9d
b2fcc13898
513917e01d

Reviewed By: wittgenst

fbshipit-source-id: d54721c2df0238b06a245088ddd04c6e9a32b85e
2021-09-28 23:02:23 -07:00
svcscm svcscm
02c5a2ba44 Updating submodules
Summary:
GitHub commits:

aaa43c9987
7480661885
a8a8363abf
1a0ac04b6e
008ade69a6
3db9d502ff
559943cdc0
c1ab629e21
69d780c934
8f02b71e27
13cf1c7902
ea27e63833
55355dd0d4
19d6c82e15
c7df7913a2
fe9d064e4d
7bee788de7

Reviewed By: wittgenst

fbshipit-source-id: ab1b0aa436f1d022b09b6b93fc95d30a28a45a4b
2021-09-28 20:07:17 -07:00
Xavier Deguillard
aac8694067 store: remove ObjectStore::updateBlobMetadataStats
Summary:
Functions that only takes boolean arguments are fairly confusing and error
prone. Here, since we only ever pass a single true value to it, we could simply
inline setting the right counter in the caller. This makes the code easier to
read, and less error prone.

Reviewed By: genevievehelsel

Differential Revision: D31188413

fbshipit-source-id: 64c019ff52b1ff5644e5bea11a361e586044403f
2021-09-28 16:02:13 -07:00
Carolyn Busch
7b80e45045 Back out "native status: support HGPLAIN color suppression"
Summary:
Changes to edenfs-client seem to be breaking the hgbuild windows job https://www.internalfb.com/intern/sandcastle/job/27021598254894733/
Original commit changeset: 218f06a4e648

Reviewed By: DurhamG

Differential Revision: D31244893

fbshipit-source-id: e9ef7c2142d0a6afca342f84574d553b136b5fdb
2021-09-28 13:37:12 -07:00
Jan Mazur
7d37dabb95 use HTTPConnection provided by mercurial
Summary: I would like to use httpclient.HTTPConnection client because in the following diffs I am adding unix domain socket support to it and jplopezgu will add use that support for commitcloud.

Reviewed By: ahornby

Differential Revision: D31229252

fbshipit-source-id: 8999f27b68f9c7aa9f725d65c291f4d338d3b813
2021-09-28 13:29:13 -07:00
Mateusz Kwapich
a50dec4da5 use segmeneted changelog for is_ancestor scs queries
Summary:
One way to mitigate the skiplist inefficiencies is to just use segmented
changelog if we can.

Currently we can do it only for commits on master bookmarks for most repos but
upcoming defrag work from farnz would allow us to include release branches
there as well. That will cover most of the is_ancestor queries.

NOTE: This is not the end of diffs switching us to use segmented changelog. I'm planning to also do it for other places where we do ancestry checks and lower common ancestor operations.

Reviewed By: StanislavGlebik

Differential Revision: D31169338

fbshipit-source-id: 9d4b27d3fb22016b0239c52d71a9b2d9ae9a103b
2021-09-28 11:51:10 -07:00
Mateusz Kwapich
a93cea3306 add is ancestor method to mononoke's segmented changelog
Summary: This would allow us to benefit from segmented changelog server-side

Reviewed By: StanislavGlebik

Differential Revision: D31169337

fbshipit-source-id: 3c648ed2f144cee57de7c319692a37b04adf5705
2021-09-28 11:51:10 -07:00
Arun Kulshreshtha
dcc4370a74 edenapi: remove old progress api
Summary: Previously, all EdenAPI methods supported callback-based progress reporting. With the new HTTP progress bars, this old progress API is no longer used anywhere (except for a test program). Let's clean it up to get rid of the extra parameter for every method.

Reviewed By: andll

Differential Revision: D31184693

fbshipit-source-id: 996959e0d81dd7685fcfaca98f162e7267684306
2021-09-28 09:37:46 -07:00
Mateusz Kwapich
ce2021e66a remove unnecessary instantiation of InnerRepo
Summary:
this admin command in D29734333 (3f8de3336a) started depending on innerRepo because it
needed access to ephemeral blobstore. It didn't need other parts of inner repo
so there's no need for that dependency.

Reviewed By: krallin

Differential Revision: D31210293

fbshipit-source-id: 004fb95d17e7e1d3095db0258f3c55dadaf5524c
2021-09-28 08:50:59 -07:00
Stanislau Hlebik
30c846cf3a mononoke: add a mode to do validation of derived data
Summary:
This mode rederives commits and compares that what was rederived is the same to
what has already been derived. It's useful to test any changes to derive data
logic and make sure these changes don't have any bugs

Reviewed By: markbt

Differential Revision: D31143741

fbshipit-source-id: 618dbf12ab444b5686d50f83a590314adc6c5dda
2021-09-28 08:45:02 -07:00
Zhengchao Liu
9d33e32ddc upgrade to VC++ 2019
Summary:
Allow a Facebook-specific vcvarsall to be used. The getdeps default of
MSVC 2017 had at least one annoying bug fixed in 2019.

Reviewed By: chadaustin

Differential Revision: D31188039

fbshipit-source-id: 1f569fe1c5f4ceb68f0ddd339e6de3c8ca07588b
2021-09-28 08:11:54 -07:00
svcscm svcscm
2d3f4fc66a Updating submodules
Summary:
GitHub commits:

49c68b9048
7592451f2e
750c059049
46c23b394a
e8e9e2374b
3a8b33eaac
6a4701e556
9bfcaeb351
32a83c7339

Reviewed By: wittgenst

fbshipit-source-id: d18b33bc349ae363ea4a8d85f857a984bd02a1a4
2021-09-28 05:11:35 -07:00
Alex Hornby
be61462f6f mononoke: remove need to clone for within_restrictions in scs diff
Summary: Remove some more path clones by changing within_restrictions to take Option<&MPath>

Reviewed By: StanislavGlebik

Differential Revision: D31175004

fbshipit-source-id: 92f0b4b594c4b3e30258acd019e7f42d9b3bc5fb
2021-09-28 04:45:22 -07:00
Alex Hornby
4f1a7b54f4 mononoke: remove some clones from diff construction
Summary: Remove a couple of clones of path by moving up ChangesetPathContentContext::new_with_fsnode_entry

Reviewed By: StanislavGlebik

Differential Revision: D31175005

fbshipit-source-id: fa686f69087e317877c2c9a9c0cffe05a6006775
2021-09-28 04:45:22 -07:00
svcscm svcscm
f4a9493ccd Updating submodules
Summary:
GitHub commits:

ec1723da79
b1a9dc4f7d
5bfbe4cd54
623d3f6588
a5fb0e4fb9
d328d16597
29dd3d3730
61b7a9ef9e
46a8661a8b
10825e048e

Reviewed By: wittgenst

fbshipit-source-id: 4925d12524032e9b73c1f31460af3535d07835ec
2021-09-28 04:37:19 -07:00
svcscm svcscm
399a939359 Updating submodules
Summary:
GitHub commits:

ae72b09989
ac43f367f6
c7e3550fc7
61b85ef7bd
4dbd1d6cd3

Reviewed By: wittgenst

fbshipit-source-id: 17edc44177506b7394a67b8a2576c728d14fa2eb
2021-09-28 01:36:20 -07:00
svcscm svcscm
fa699780df Updating submodules
Summary:
GitHub commits:

ddb279fc4b
c8e6f8eef0
e0acaf338d
dce2ff8659
cd9f3607a3
eb0741d888

Reviewed By: wittgenst

fbshipit-source-id: 4f8a59b6775db7d14ee465d58485a04c24c8e3c4
2021-09-28 00:38:38 -07:00