Commit Graph

76154 Commits

Author SHA1 Message Date
Katie Mancini
cff9ff7e4f remove folly::Format PathFuncs
Summary:
From the folly format docs
> Use fmt::format instead of folly::format for better performance, build times and compatibility with std::format

eden build times have gotten a bit high, cutting out folly format will help reduce build time, so let's start
by banishing it from eden

see the last change in this group for the difference

Reviewed By: xavierd

Differential Revision: D38251000

fbshipit-source-id: a5aee79f7f0acbf969a351c3aa5ac32bb6c01b2a
2022-08-02 11:44:19 -07:00
Katie Mancini
ae72e466c1 remove folly::Format TakeoverData
Summary:
From the folly format docs
> Use fmt::format instead of folly::format for better performance, build times and compatibility with std::format

eden build times have gotten a bit high, cutting out folly format will help reduce build time, so let's start
by banishing it from eden

see the last change in this group for the difference

Reviewed By: chadaustin

Differential Revision: D38250996

fbshipit-source-id: 7f1ffc4a13c2751b503c26792ae841090b119c9c
2022-08-02 11:44:19 -07:00
Open Source Bot
0cfc90f74a Updating submodules
Summary:
GitHub commits:

ebe94c0e0d
b288cf0bf5
291705faca
96880e8c9e
d9ebec7ed6
ee631f54e9

Reviewed By: bigfootjon

fbshipit-source-id: 911b03190b0131fde079a508db40fcc951da1dba
2022-08-02 11:14:14 -07:00
Jan Mazur
0eaf06311a forward cats meant for VI
Summary:
Mononoke server on push (currently only wireproto) forwards cats that are supposed to contain extra identities used by verify integrity and stored in a db and logged to scuba here: https://fburl.com/scuba/commit_integrity/ibk4ysx5

Since remote pushrebase was rolled out, we lost these cats along the way. I'm forwarding them to SCS with this diff.

Reviewed By: markbt

Differential Revision: D38198880

fbshipit-source-id: c10973ac5f46a22b2c4b6f4de6d2ddb3b77630af
2022-08-02 10:51:01 -07:00
Open Source Bot
5f8e8db5ca Updating submodules
Summary:
GitHub commits:

0d70ec4fcb
99e78e77c5
9e4396c650
a8235bc51d
9da97a3726
8162c9e577
1255df3c33

Reviewed By: bigfootjon

fbshipit-source-id: fccc67022e4006e91c2277dfb0561a104e3c4856
2022-08-02 09:52:33 -07:00
MSDK Bot
4891cb67f9 Update isl component on FBS:master
Differential Revision: D38355168

fbshipit-source-id: 257adf205bc875549e354209f227916720649b5e
2022-08-02 09:40:41 -07:00
Open Source Bot
439b90ba25 Updating submodules
Summary:
GitHub commits:

195bcc46bf
d9b44f3ca4
1f8ad4e8c4
648159905d
3cdca263d8
109ae35a38
2a37f5cfdd
8a9c42cc56

Reviewed By: bigfootjon

fbshipit-source-id: 0ef7c4fbf3d4b8af4dbbecbd4f6a770dff4e4049
2022-08-02 09:16:11 -07:00
Michael Bolin
d940f2daa9 use BEL instead of ESC in hyperlink function
Summary:
As reported in https://github.com/markbt/streampager/issues/57,
we saw extra backslashes in the output of the `hyperlink()` function.
Changing the ANSI escape sequence appears to fix things,
at least in iTerm+streampager.

Reviewed By: markbt

Differential Revision: D38268807

fbshipit-source-id: d47e3cf5fa9e2f93485221bdc0cd4aa62a812ea5
2022-08-02 08:44:55 -07:00
Mark Juggurnauth-Thomas
61efb1f9fb check_write_permissions: add bypass allowlist
Summary:
For some scenarios (e.g. mirroring commits) it may be necessary to bypass the
recently-added author write permissions checks.  Add a `bypass_allowlist` option
to the hook config which lets us define identities of pushers who are allowed to
bypass this check.

Reviewed By: mzr

Differential Revision: D38350812

fbshipit-source-id: c4ddefd631cef1053573426b05e35481d999aa62
2022-08-02 08:05:17 -07:00
Open Source Bot
2d245dacbc Updating submodules
Summary:
GitHub commits:

07f0838469
445a78a443
7c6aecf61f
7295ddc06e
69db4fd7ef
e4ed598c13
3d80b981f7
10adc9fdc4
149a3f8fe8
16dfe3fb99

Reviewed By: bigfootjon

fbshipit-source-id: 840e3b206772101b84da4df861c31d742d02d547
2022-08-02 07:59:48 -07:00
Harvey Hunt
01131adcb8 mononoke: Remove hook manager factory
Summary:
The hook manager factory was used in a couple of places to make it
simpler to create a `HookManager`. However, `HookManager` is now a facet and
can therefore be created using the facet factory methods.

Remove the hook manager factory code and move its logic into `repo_factory`.
Further, update `mononoke_api::Repo`'s `new_test_common` method to create a
`HookManager` using `TestRepoFactory`. In the future, we should get rid of the
custom test methods inside of `Repo` and rely on `TestRepoFactory` instead.

Reviewed By: markbt

Differential Revision: D38352454

fbshipit-source-id: aa127ad3408a049576dafe6e21bc65f50203ead2
2022-08-02 07:59:14 -07:00
Harvey Hunt
1566c26579 mononoke: Convert mononoke_api::Repo to a container
Summary:
Now that all of the components of `Repo` are facets, the struct can be
converted to a container. This means that the struct can be built using a
`RepoFactory` rather than calling `Repo::new()`.

In later diffs, we can remove the helper methods (e.g. `hook_manager()`,
`ephemeral_store()` etc) and update callers to import traits instead.

Reviewed By: yancouto

Differential Revision: D38349354

fbshipit-source-id: bd9ae8b3d1e6aa1d0230306860fcff852161fad0
2022-08-02 07:59:14 -07:00
Harvey Hunt
be4cf4eba7 mononoke: Move skiplist env into repo_factory
Summary:
`mononoke_api::Repo` has logic to disable skiplists if there
`skiplist_enabled` isn't set in `MononokeEnvironment`. In order to migrate
`Repo` to be a container, this logic needs to live inside of the repo_factory.

Update the code to create a skiplist index to check the same environment
setting and disable skiplists if it's not set.

Reviewed By: yancouto

Differential Revision: D38349355

fbshipit-source-id: 0550607506b91e0a42a63bcec5995c20f12b03a0
2022-08-02 07:59:14 -07:00
Harvey Hunt
8defde8a18 mononoke: Convert WBC to a facet and build it with repo_factory
Summary:
The Warm Bookmark Cache isn't a facet, which means that it can't be
built with `repo_factory`. Turn it into a facet and add code into
`repo_factory` to build it from the required components.

Reviewed By: yancouto

Differential Revision: D38349357

fbshipit-source-id: b89f73178a9be1b2811daae8614ff09cc80d1068
2022-08-02 07:59:14 -07:00
Harvey Hunt
4b6a656fa2 mononoke: Convert WBC to store components rather than a repo
Summary:
The Warm Bookmark Cache builder stores a `Repo` like object. However,
in a later diff I'm going to modify the code to be built from a factory. In
order to do that, I'm updating the WBC to store components rather than a
container of components.

Reviewed By: yancouto

Differential Revision: D38349356

fbshipit-source-id: 74999ed45e58f5a282632861b53366113872a845
2022-08-02 07:59:14 -07:00
Open Source Bot
1868444971 Updating submodules
Summary:
GitHub commits:

b7653e8f2d
d20a679a5c
5a3af4f49e
a93917b822
d821f008a6
92530e0efb
e2272bf452
02acee3e5d
3b903f7e54
69eab848d5
55261d8347

Reviewed By: bigfootjon

fbshipit-source-id: ef611870b95289f5f73235c3672c67d7f850953c
2022-08-02 06:54:44 -07:00
Pierre Chevalier
af65169484 Port x_repo to a new cross_repo target
Summary:
Replicate the functionality from `cmdlib_x_repo` as closely as possible with `cmdlib_cross_repo`.
`cmdlib_cross_repo` uses the clap 3 compatible constructs, like `MononokeApp`.

This currently adds some duplication, but the idea is to remove `cmdlib_x_repo` once no target depends on it anymore.

Reviewed By: mitrandir77

Differential Revision: D38318114

fbshipit-source-id: 028557f9f954148c85f66b8503dcb532641c2889
2022-08-02 06:35:43 -07:00
Pierre Chevalier
5aff9ed740 Support source and target repos
Summary:
These can be added as command line arguments to dependent targets.
This addition offers a clap 3 compatible alternative to functionality that is currently only present in cmdlib::args with a clap 2 compatible interface.

This diff is necessary to enable the migration of `mirror_hg_commits` to clap 3.

Reviewed By: mitrandir77

Differential Revision: D38315867

fbshipit-source-id: 73b6ea8c40d66c8d5605ab1b8efaf45e98de74e9
2022-08-02 06:35:43 -07:00
Open Source Bot
1ae1da5ff9 Updating submodules
Summary:
GitHub commits:

062daf4c88
5fdc1116c5
0b38c9e2e5

Reviewed By: bigfootjon

fbshipit-source-id: d40fd728a44d6d3043c74fb2bb55b4399d4e6248
2022-08-02 06:03:32 -07:00
Pyre Bot Jr
1047e88ee6 Add annotations to eden/scm/edenscm/mercurial/filelog.py
Reviewed By: jordanwebster

Differential Revision: D38351545

fbshipit-source-id: ee1bfafcc2cba11a68864fb2b41c621d0263d13d
2022-08-02 05:45:42 -07:00
Rajiv Sharma
01299df471 Remove BlobRepo dependency from RepoHandlers
Summary: By the end of this stack, I plan to facetize `RepoHandler`. The first step in that process is to ensure that the `RepoHandler` struct and its dependencies do not depend on `BlobRepo`.

Reviewed By: yancouto

Differential Revision: D38314196

fbshipit-source-id: 99cc4936ef1eaf8e73a900dc025575b34fdd3271
2022-08-02 04:52:30 -07:00
Open Source Bot
35e5f4121f Updating submodules
Summary:
GitHub commits:

a182d07841
fd2345abbd
628ccb5a22
8fde405a7b
f722751839

Reviewed By: bigfootjon

fbshipit-source-id: 1fc0316893b0d0e5956bd77470942ff7d60b00eb
2022-08-02 03:29:20 -07:00
Open Source Bot
61e9c15f02 Updating submodules
Summary:
GitHub commits:

ceb36b5611
f62daef7cc
0d12a190f0
414280e66c
0292d13407
c27d01f49c
c02025c320

Reviewed By: bigfootjon

fbshipit-source-id: 70718fd181f6e8f01d9d2147b83e26c4e2f6d283
2022-08-02 02:48:05 -07:00
Open Source Bot
338b43fdda Updating submodules
Summary:
GitHub commits:

c4b44a9af0
cefde34448
c7de774025
5c116cf162
ab1586f510
d50bdb81a2
46a5b43812
c8d1a33806
6fae004610

Reviewed By: bigfootjon

fbshipit-source-id: 3b53daba0a17e7b65c73364d1d529fc5b1627e4d
2022-08-02 02:01:18 -07:00
Open Source Bot
fef46fd67e Updating submodules
Summary:
GitHub commits:

1e40e7e509
a7b82a1803
39b6a73464
af5495b011
f72180fd74
2141f8046e
46c4e4305f
fba4080e40
fe0393b019
d92ce899a7
cbdaf5af0b
e43ba5eed0

Reviewed By: bigfootjon

fbshipit-source-id: 56c6f2606524598cdd4aaf2853e6d5a9adefb3bc
2022-08-02 01:22:16 -07:00
Open Source Bot
66d78f2d8f Updating submodules
Summary:
GitHub commits:

9f8ca7f2ab
c565acb24c
a575638167
37604f65d7
0025e2f25d

Reviewed By: bigfootjon

fbshipit-source-id: d10430f9a79f2b8ccb0bb5406025057c3ff63cbc
2022-08-02 00:46:39 -07:00
Open Source Bot
60acf021ec Updating submodules
Summary:
GitHub commits:

511799e5e3
6d0f64fe2d

Reviewed By: bigfootjon

fbshipit-source-id: 3e16ad1ce2d71dacf5edce5de6c344f2fcb00725
2022-08-02 00:00:30 -07:00
Open Source Bot
6a048c29ef Updating submodules
Summary:
GitHub commits:

e0ad84ae82
3d2a9afa03
c3cc63adef
25a0c6ebd3

Reviewed By: bigfootjon

fbshipit-source-id: 62fd1a52408a4198c0fce2f4cd2910bf0c5d00f8
2022-08-01 21:16:58 -07:00
Open Source Bot
90926f0725 Updating submodules
Summary:
GitHub commits:

b362618dc9
cc8ded6152
f93e753660

Reviewed By: bigfootjon

fbshipit-source-id: e350b6fa8c37f3a3153ae4810acdab7f4fa4638d
2022-08-01 20:38:35 -07:00
Open Source Bot
ef4979342c Updating submodules
Summary:
GitHub commits:

aeb3a1e237
31aad799c1
c353e3f7cc
2df96f24e1

Reviewed By: bigfootjon

fbshipit-source-id: 6e3aa457b580c9ac8dd2a6071c7639d7f9b12bbe
2022-08-01 19:57:02 -07:00
Open Source Bot
28bb605fa6 Updating submodules
Summary:
GitHub commits:

061650ee26
825b221b33
809ce8cb1e
d1e92ccd10
6d68af3c9c
7804d0014e
190394a382

Reviewed By: bigfootjon

fbshipit-source-id: 4676630179819cc62472a4dc622391c24841de03
2022-08-01 19:16:07 -07:00
Open Source Bot
8dba6f79df Updating submodules
Summary:
GitHub commits:

f452a6a563
e4020f2cd2
d1348eb299
1e91a2228d
fbfcf5cbcd
4a9b590af2
17a09a356c
66650363e0
f05a03961e
8e395c8180
9a1187a4de

Reviewed By: bigfootjon

fbshipit-source-id: fd61adf4ecddc7fed34079a561e8f93b03abdb27
2022-08-01 18:36:47 -07:00
Open Source Bot
5742e4312a Updating submodules
Summary:
GitHub commits:

8dd9bbb5cf
664e4baeb6
b0e7210823
2279bdc8bd
b1b385ba59
bb6941a757
cd8835cbab
0c34257438
d097f832d3
53a545bf90
1af436a465
0e71bf7204
84964209e2

Reviewed By: bigfootjon

fbshipit-source-id: f1ee3243cc62635c26b28793192766459394e995
2022-08-01 17:19:24 -07:00
Open Source Bot
33eda94103 Updating submodules
Summary:
GitHub commits:

025ec39d7b
6a47035fad
ddf8d09cdf
256f284ea3
7259579f16
0be363719d

Reviewed By: bigfootjon

fbshipit-source-id: 1d342494ea8773a2307547fecb7afac03078663c
2022-08-01 16:37:05 -07:00
Open Source Bot
1b3ec72694 Updating submodules
Summary:
GitHub commits:

68e747bb34
84d126ff3c
95cf84fd0d
9a01f60667
cc2099803a
820e118e33
b1e102a329
6900310117
8e99bf08a5
5f96a6da7e

Reviewed By: bigfootjon

fbshipit-source-id: b67196c91bf7e31a8b40d3f0aa6fb0e8164443f1
2022-08-01 15:49:25 -07:00
Open Source Bot
231fe131c5 Updating submodules
Summary:
GitHub commits:

5902f804e1
ecb88018a4
bf20a945f3
9d37c4579c
2d3f68b579
c804953bda
9296299a9d
2283966c2a
2dc6ec03d9

Reviewed By: bigfootjon

fbshipit-source-id: c7827044caded602166c6d371fe6876c5fe5e786
2022-08-01 15:04:20 -07:00
Open Source Bot
ab066eac72 Updating submodules
Summary:
GitHub commits:

d54908b632
35cb93fd07
fd9fc98d01
5377d36613
0a85844256
7e28293561
411f139119
ebb52eeac3
0d54aef9c6
6b542b1587
8424533700
0b99315202

Reviewed By: bigfootjon

fbshipit-source-id: 8143bb93a8056dd606906b227264d3c182a73ea5
2022-08-01 14:22:26 -07:00
Open Source Bot
5dfb17afba Updating submodules
Summary:
GitHub commits:

c0f94676b6
cab234ea26
635d05490a
47896bcaa9
d76de69aef
2c14287174
ee1258dd09
4a9c0fa557
fecb8d053f
863a0c3e13
ae7aaf4b6e
4e430a25ae
b60f3de9c4

Reviewed By: bigfootjon

fbshipit-source-id: 4ecbf4ae261606092241ac71877f465c3e1c821f
2022-08-01 13:46:25 -07:00
Jun Wu
132f87a9de test-commitcloud-sync: remove broken state (invalid json) test
Summary:
This does not seem easily reproducible. With the commit cloud state stored in
metalog, metalog ensures the data integrity so invalid json cannot happen.
Therefore, remove the test case.

Reviewed By: sggutier

Differential Revision: D38318764

fbshipit-source-id: 98ad2977d177977d993da0bc311d26999b61658c
2022-08-01 13:45:55 -07:00
Open Source Bot
a7fbc21cb6 Updating submodules
Summary:
GitHub commits:

2e0e5fe67a
3d3676155b
72eefae001
81cb6cc349
65e41e73a2
4b6471980b
938fbcd466
5ca0485fc2
1462b5e34f
34153c645e
5c8b67283d
ab38fb45ca

Reviewed By: bigfootjon

fbshipit-source-id: 1db9b34ce8e203424ee011112692da6efbb96dfa
2022-08-01 13:05:32 -07:00
Open Source Bot
78906133fb Updating submodules
Summary:
GitHub commits:

a8ef988b42
a9abca5145
109b0819e0
8205765262
0e8e302dd3
e1b176d274
b46dc1a05c
3754e792b0
28db2f3802
e615695b8b
6b18d278a0
483bd0b526
1e358c51a5
66f96865c7
0a2af89149

Reviewed By: bigfootjon

fbshipit-source-id: 57c728394476fe8db3dc1e8d09b80287b2cfc565
2022-08-01 12:00:32 -07:00
Michael Bolin
92135d0fc3 fetch GitHub data via GraphQL from Python
Reviewed By: quark-zju

Differential Revision: D38209591

fbshipit-source-id: 7ee71cf3bab43c50202d546e4a6ff14fb1d8ad1a
2022-08-01 11:49:04 -07:00
Eddie Shen
8f1baefee1 Codemod away ::{self}; (#71)
Summary:
X-link: https://github.com/facebookresearch/Private-ID/pull/71

Previous codemod left some crust. This commit cleans up useless uses to use less uses.

Reviewed By: stepancheg

Differential Revision: D38211793

fbshipit-source-id: c852dd1ec617fe81a1d9bd0d8a9e5d2357b9b502
2022-08-01 10:56:01 -07:00
Open Source Bot
9324aa116b Updating submodules
Summary:
GitHub commits:

c580fdd62e
05059cd28c
0e5882a83b
b93164deb8
36f5a17dbc
dfc5ef27d4
bf225ba3ba
76ae7d330e
d4a7f1a1fb
b53f3bc626

Reviewed By: bigfootjon

fbshipit-source-id: ca6c98af387c25ee0a5ec539232eb867983dc111
2022-08-01 10:38:04 -07:00
Pyre Bot Jr
da51868e51 Add annotations to eden/scm/edenscm/mercurial/mail.py
Reviewed By: quark-zju

Differential Revision: D38312323

fbshipit-source-id: 4d3cf995c2934a9202208598b10f5b522e313dad
2022-08-01 09:56:11 -07:00
Open Source Bot
a1a9f76793 Updating submodules
Summary:
GitHub commits:

54f098ff44
9c11d4cc91
5299b329b2
1113c27327
ea3fe0a2c7
06e93163c6
3ea6385445
89c14fb9f7
7f579dd668
450aa2e363
b1837b7d56
2adb54cb18
0422349847
5457c30617

Reviewed By: bigfootjon

fbshipit-source-id: 3da2aa75a31af7b0ca145ee333de35b8a60e6199
2022-08-01 09:55:53 -07:00
Open Source Bot
6e1b551e81 Updating submodules
Summary:
GitHub commits:

811f0385a8
701f160ca8
7e77242337
e219085889

Reviewed By: bigfootjon

fbshipit-source-id: b70e431c54314f6d6006ae4fee377b3296283b1d
2022-08-01 08:39:38 -07:00
Saul Gutierrez
fd26cdd42a hgcommands: fix errors on early hook
Summary: This fixes `test-clone-hook.t`, which had some missing output due to adding an early `wait_pager` in D38288111 (b8d14f309e)

Reviewed By: jordanwebster

Differential Revision: D38303439

fbshipit-source-id: b37b16af944290dddb6d8303fee984f2ee27406d
2022-08-01 08:32:53 -07:00
Philip Pronin
f6a52160c5 use appendCodePointToUtf8
Summary:
Replace `codePointToUtf8` with `appendCodePointToUtf8` (D38305991)
where it makes sense.

Reviewed By: luciang

Differential Revision: D38306295

fbshipit-source-id: 6203f3509cc5bedd8cf8d484305ac8be583c16d6
2022-08-01 07:09:24 -07:00
Callum Ryan
9f2287d9ca Better hostcaps env support
Reviewed By: arauter

Differential Revision: D38309952

fbshipit-source-id: 7931aefa80b3727e4e1ddc7ceab5f8ef39c0067c
2022-08-01 06:47:08 -07:00