Commit Graph

73272 Commits

Author SHA1 Message Date
svcscm svcscm
44d12292f5 Updating submodules
Summary:
GitHub commits:

981305b136
7084ea2083
6c5a24d6df
09c2ff5953
d7d03d2c98
9669f41477
7e135c84d9

Reviewed By: wittgenst

fbshipit-source-id: 39aca769bb5b2a6422629b89cbd03892e3cff417
2022-04-13 15:22:55 -07:00
svcscm svcscm
d72ce4e4e0 Updating submodules
Summary:
GitHub commits:

a5b36cf57b
218764997d
9da13eb3f2
ac86ddfb10
4a714e1989
50c7b3ecc7
c68e8f7b72
deba638e9b
b31c8e7357
87c84da806

Reviewed By: wittgenst

fbshipit-source-id: 9f41039b57890352aa22be350e3b15d173c2d948
2022-04-13 14:53:44 -07:00
Andrew Hariri
542cd38136 update reqwest to 0.11.10
Summary: Maintainer still unresponsive on https://github.com/seanmonstar/reqwest/pull/1412

Reviewed By: wqfish

Differential Revision: D35600272

fbshipit-source-id: e01a7ae459ea215180158f4186d33fb1fbed18ff
2022-04-13 14:44:40 -07:00
svcscm svcscm
9994b483a2 Updating submodules
Summary:
GitHub commits:

affbf54ffe
7bc6934d47
d6159dfcf2
5db9365b7f
594c51aa82
5645207758
5807ed1240
1ebd1cc247
eb457b7b3c
4b3c6a8f05
e9bcd1d847
5faf2fe748

Reviewed By: wittgenst

fbshipit-source-id: 18968701e6d3f7470df8caaa0332088036c11d05
2022-04-13 14:23:33 -07:00
svcscm svcscm
4f234457f3 Updating submodules
Summary:
GitHub commits:

f458773e3c
28a8d16dfc
208fdca6c9
c12758ea77
dc1c90c4e3
007b07a258
3e86e1a0a4
93e71a361b
702149448b

Reviewed By: wittgenst

fbshipit-source-id: d9749c842721e18a7aad196b7b1250860ed73bd7
2022-04-13 13:52:45 -07:00
svcscm svcscm
24f02c67c9 Updating submodules
Summary:
GitHub commits:

dd177cbfe2
3c90b9f45a
39602aab57

Reviewed By: wittgenst

fbshipit-source-id: 3c4ea3e1efa20be2a38ec1b4cfeb97d9a87e60b8
2022-04-13 13:26:37 -07:00
Mateusz Kwapich
0c09a0053c make manager return the loaded version
Summary:
This diff makes the manager return the loaded segmented changelog version
which is going to allow us

Reviewed By: farnz

Differential Revision: D35408143

fbshipit-source-id: 748901c992e2e67e561970f836892a13c6d88e27
2022-04-13 12:47:03 -07:00
Mateusz Kwapich
a866d52cbc add a function for checking latest version to manager
Summary:
To avoid unnecessary reloads we need a facility to check the latest version (so
we can compare it with one currently loaded)

Reviewed By: farnz

Differential Revision: D35408138

fbshipit-source-id: 14021edda52105fad71ce430feee42bc42659546
2022-04-13 12:47:03 -07:00
Mateusz Kwapich
5ef2f55dea change periodic reload to a named struct
Summary: This will allow me to augment it with other stuff.

Reviewed By: yancouto, farnz

Differential Revision: D35408140

fbshipit-source-id: 1096255eabd84c995ba0bb71209eafd3974c0610
2022-04-13 12:47:03 -07:00
Michael Bolin
056ae53196 rename github to github-cli because it broke autocargo
Reviewed By: zertosh

Differential Revision:
D35615001
Ninja: need to fix autocargo and oss-eden-darwin-getdeps is taking forever

fbshipit-source-id: 1dfc74532615823be3e4cb39ff82e1f7cc0ea1a6
2022-04-13 12:20:02 -07:00
Chad Austin
00b71929a3 reduce unit test runtime by decoupling EdenServer from the full set of BackingStore implementations
Summary:
By lifting construction of the BackingStores into main, the core
"service" target no longer needs to depend on their
implementations. This shaves almost 60% off the unit test runtime on
my devserver. The tests could be made even faster by decoupling all of
our core logic from HgBackingStore and friends.

Reviewed By: xavierd

Differential Revision: D34774356

fbshipit-source-id: 87c2d5f44cfd84d6e01bea44dd4105f6415ce162
2022-04-13 12:01:59 -07:00
Chad Austin
036bfbf745 allow BackingStores to advertise whether checkout can assume blob IDs and contents are 1:1
Summary:
Some backing stores have a 1:1 relationship between blobs and their
IDs. Others don't. If they do, checkout can compare blob contents more
quickly.

In addition, add a config knob that we can use to opt hg into the fast
path, at the risk of correctness. It might be useful for getting out
of sticky situations where any update triggers a ton of fetches.

Reviewed By: xavierd

Differential Revision: D34761024

fbshipit-source-id: 36d513d37c38fc29a708e583ebc2614f07f11bb4
2022-04-13 12:01:59 -07:00
svcscm svcscm
26fbaa3d9d Updating submodules
Summary:
GitHub commits:

25e508b2a5
fc784d17b7
c0c8267ab4
8febfb7f1f
357863a64e
35384f02b4
003ebcad2f

Reviewed By: wittgenst

fbshipit-source-id: a167cda96e1cac83904e484de7e4429624d3706e
2022-04-13 11:48:28 -07:00
Yan Soares Couto
959764d6da snapshot: Fix max-untracked-size with symlinks and set default to 1GB
Summary:
We currently have no default. Untracked files can be very large (like binaries and such), and easy to miss. We already had an option for that, but were not using it by default. Should the default be even smaller?

It also didn't work with invalid symlinks, as `Path.stat` tried to follow symlinks, so I fixed that.

If a client really wants to upload a large file, they can specify the command line argument by themselves.

Reviewed By: farnz

Differential Revision: D35498620

fbshipit-source-id: 7c21c779a680fb209b82943ec59aa5523cd1608c
2022-04-13 11:26:50 -07:00
svcscm svcscm
a7c9b8f91e Updating submodules
Summary:
GitHub commits:

c0a6b07a5c
84f21c4803
251994467b
cae4fde0a4

Reviewed By: wittgenst

fbshipit-source-id: 7acf02d8d90d8a8e1d185f353ec3ba326ac5bc72
2022-04-13 11:11:28 -07:00
CodemodService FBSourceRustfmtLinterBot
2c8f120b81 Daily arc lint --take RUSTFMT
Differential Revision: D35606540

fbshipit-source-id: 1d51e1170b13c0c8512e935ea83b03f96fc2d4e4
2022-04-13 11:07:31 -07:00
svcscm svcscm
2bca20a52d Updating submodules
Summary:
GitHub commits:

d4e7a71ced
c546325fa2
66490a8ac2
30dfbd4921
0e3d265d57
2b1dd9f83a

Reviewed By: wittgenst

fbshipit-source-id: 22098795d7b0f9564f2c125cce45749096d5d29c
2022-04-13 10:32:51 -07:00
svcscm svcscm
c3d1b1e5d3 Updating submodules
Summary:
GitHub commits:

34878c0767
c8e8c85c84
9b940d3804
d38a2b9a53
58517019aa
43c18e5ad9
715aaee2f5
60f16fff87

Reviewed By: wittgenst

fbshipit-source-id: 786a33e5daaf76dd8dab550f8365e3b4a9c84a18
2022-04-13 10:05:17 -07:00
svcscm svcscm
67b7265456 Updating submodules
Summary:
GitHub commits:

6189bb978c
7ee94c0a94
de65ea0210
13bedc3c58
1925883773
9be12544af
b732eca166
0d93ec2002
82de94d568
a7ad7bf4de
82b664175f
599e910805

Reviewed By: wittgenst

fbshipit-source-id: 98cff9e815eabd43f8b479160d376b7b216bdc1f
2022-04-13 09:31:51 -07:00
svcscm svcscm
44969fb681 Updating submodules
Summary:
GitHub commits:

9c94fb9db8
25c66c3764
58a78901a9
d497464cb2
9187f458d7
43db6f3f54
9ad2ae8517
afdb22528b
4467fe5563
2318278d4a
faf67e7d35

Reviewed By: wittgenst

fbshipit-source-id: 41880b8cb7268785064f0377000df235c8859e1d
2022-04-13 09:05:41 -07:00
svcscm svcscm
8eee4d61d5 Updating submodules
Summary:
GitHub commits:

30677c3bca
3d9fb8b261
efd035164b
1bb452226a

Reviewed By: wittgenst

fbshipit-source-id: 0ccef57825ed7d802c7af99ad81fcca71bb461a5
2022-04-13 08:36:49 -07:00
Michael Bolin
87d6ff062c add Rust method to fetch pull request data
Reviewed By: quark-zju

Differential Revision: D35573631

fbshipit-source-id: 316485394963bd0c2e06d536d80611a8a0336bc4
2022-04-13 02:47:11 -07:00
Michael Bolin
12a75b87e5 generalize logic to make requests to GitHub GraphQL API
Reviewed By: quark-zju

Differential Revision: D35567823

fbshipit-source-id: 99b14c80a08ccaf6e69caa442d716e8f17f25c11
2022-04-13 02:47:11 -07:00
Michael Bolin
684daeb665 introduce Rust crate to talk to GitHub via its GraphQL API
Reviewed By: quark-zju

Differential Revision: D35491509

fbshipit-source-id: 489a491d1e81e93608f93ef25c3fbbb75e0907c4
2022-04-13 02:47:11 -07:00
Michael Bolin
2d7c25b779 import GitHub's schema.docs.graphql
Summary:
This diff imports the most recent version of `schema.docs.graphql`
available on https://docs.github.com/. Details explained in the `README.md`
included in this commit.

Reviewed By: quark-zju

Differential Revision: D35600010

fbshipit-source-id: 52050db604ca884ce7465da58c3ed2aa3fb85dbc
2022-04-13 02:47:11 -07:00
Ilia Medianikov
36297cb8ff mononoke: create usable segmented changelog in TestRepoFactory
Summary:
Currently unit tests that need a segmented changelog create it separately from the repo because in test repo there is only a `DisabledSegmentedChangelog`. I am making it possible to have an `OnDemandUpdateSegmentedChangelog` that is both useful and can be updated to include needed commits.

Look on new `test_is_ancestor` test to see what is made possible.

Reviewed By: markbt

Differential Revision: D35053513

fbshipit-source-id: 221600b50c8a0140b08f633dc3758489f2524f60
2022-04-13 02:45:23 -07:00
Ilia Medianikov
e387b2619c mononoke: add FacebookInit to TestRepoFactory
Summary: Segmented Changelog requires `CoreContext` for construction, so we can create a test mock if `TestRepoFactory` has a `FacebookInit`.

Reviewed By: markbt, mitrandir77

Differential Revision: D35251021

fbshipit-source-id: 57051e227804669794f19fc2ca130f52cb938b0c
2022-04-13 02:45:23 -07:00
svcscm svcscm
f9d335c826 Updating submodules
Summary:
GitHub commits:

324e5c476d
92ab9100aa
6ff2a12a4b
32f6639694
ad038c01c6

Reviewed By: wittgenst

fbshipit-source-id: af9168efa4752f6c46033349041f21bc1c6e61f2
2022-04-13 02:22:13 -07:00
svcscm svcscm
9bfddd8ef9 Updating submodules
Summary:
GitHub commits:

2a45504331
b3cdcb0712
9139fd1101
d2a4363463
0ad191f8ff
a5a54d268f
51c2317393

Reviewed By: wittgenst

fbshipit-source-id: daa75b2c4d3397a273e916cbe2c96b775aede1f4
2022-04-13 01:51:36 -07:00
svcscm svcscm
2660c7b3bc Updating submodules
Summary:
GitHub commits:

eb5efa83fd
9b664d7d71
3968828422
3dfb90b095
d90dcf2f63
392b8cb27a
0b38dd02d3
70f3d7774d
db6418b927
7aeaa75256

Reviewed By: wittgenst

fbshipit-source-id: 3c09530fba9ad52baff242793c0100e511b75040
2022-04-13 01:24:08 -07:00
svcscm svcscm
d705d38d9c Updating submodules
Summary:
GitHub commits:

263ae89c98
86fa219686
b65e8f9ee9
b19be4a889
58bf33b369
63ba85df77
d600c96aa5
4a4c4f92a9
e9d3c48442
21305a649c
a77f17f832
64f94b0fc1

Reviewed By: wittgenst

fbshipit-source-id: c52e4b0d310239b3a2cba3b77cda1b8436d88956
2022-04-13 00:52:48 -07:00
svcscm svcscm
b85c7425a1 Updating submodules
Summary:
GitHub commits:

62c45835db
767de5cefb
2a9864ce73
c91bb5721b
e5516f08cf
3c9da651e8
6557625f71

Reviewed By: wittgenst

fbshipit-source-id: 2cb444a86c59715ef37a4ffaa4375827dafb2f16
2022-04-13 00:26:13 -07:00
Huapeng Zhou
7a8725f586 rust: update crossterm to 0.23.0 and arc-swap to 1.5.0
Summary:
Needed to import [cloud-hypervisor](https://github.com/cloud-hypervisor/cloud-hypervisor).

(Note: this ignores all push blocking failures!)

Reviewed By: dtolnay

Differential Revision: D34434866

fbshipit-source-id: 69741b4ac767e0ab5ecc8307dd40267d9dcbf4ae
2022-04-12 23:50:06 -07:00
svcscm svcscm
2b4a718e5d Updating submodules
Summary:
GitHub commits:

0fd6c32d56

Reviewed By: wittgenst

fbshipit-source-id: 06833586aed3bb7db03a59328bfe618c23b4ef8a
2022-04-12 23:48:12 -07:00
Michael Bolin
6b6c34a27e submit subcommand
Reviewed By: quark-zju

Differential Revision: D35419375

fbshipit-source-id: 1cfed6d3ee43f430c61fea3ebc457dee12f6fad9
2022-04-12 23:03:59 -07:00
svcscm svcscm
cc075e2aab Updating submodules
Summary:
GitHub commits:

ab4ca77d40
b53445e15f
9ef8f734d0
2d86b02ea1
bd644a051f

Reviewed By: wittgenst

fbshipit-source-id: 9ce2053ebce5454c1b63a8791653bcc9c269279e
2022-04-12 21:41:37 -07:00
svcscm svcscm
5de964bf19 Updating submodules
Summary:
GitHub commits:

e22ced64d5
8556b76fd9

Reviewed By: wittgenst

fbshipit-source-id: 5a61ef6ff121c287c8b55f66d696e0a55879fc4a
2022-04-12 21:13:46 -07:00
svcscm svcscm
73a795060d Updating submodules
Summary:
GitHub commits:

3e0a1506f6
43be5305b5
152c9fec09
525278f761
7fceeab205
7de323ed81

Reviewed By: wittgenst

fbshipit-source-id: 46a64d71dde8345ac7615dbfd47d10e5822a9e51
2022-04-12 20:14:23 -07:00
svcscm svcscm
5615ed6c0d Updating submodules
Summary:
GitHub commits:

ced6c01916
b4a45ff403
4eb36419c7
2f51761616
32e89f9207
92cbba5d3c
f0beaee469
72f87364ae
92ead4e4f7

Reviewed By: wittgenst

fbshipit-source-id: 46504df10234922a6ba50a0449eef1b24c87f730
2022-04-12 19:45:52 -07:00
svcscm svcscm
9875784823 Updating submodules
Summary:
GitHub commits:

0d74faacd4
91521f7ed0
373f1f78f7
b7b04d363a
f705f38744
0a4a060498
876ad2c7b9
2cb3006436
44a3ac464e
d7c78ff40a
b33f25d01b

Reviewed By: wittgenst

fbshipit-source-id: e901b014dbefa32f54b8356733c2309419bd74c2
2022-04-12 19:13:37 -07:00
svcscm svcscm
f66775e60b Updating submodules
Summary:
GitHub commits:

647951d351
d6ecdd15ac
9f2971dc6c
b13642de2d
3bf717286b
434fe93974
1b6ddd0e2b
e68f49e073
1dd000978f
197297e025
5bebb8e07d
7a158fcb80

Reviewed By: wittgenst

fbshipit-source-id: 4688c20d806514fc116e5bb66f13f8a5c01b79ca
2022-04-12 18:43:08 -07:00
Michael Bolin
73836c7887 remove underscorenames lint
Summary:
This removes the historical check in our Mercurial codebase that
disallows underscores in names (modulo a substantial allowlist).

Incidentally, upstream Mercurial also relaxed this restriction in Oct 2019:
https://phab.mercurial-scm.org/D2010 (40bbe7b4da).

Note it is neither the goal nor the expectation that we start going around
renaming existing members to include underscores. We expect files to
maintain internal consistency, at least as far as their API names are
concerned. Inevitably, code authored under the old convention may
call into other APIs that favor underscores (and vice versa) such that
we cannot demand 100% consistency within a file.

Reviewed By: quark-zju

Differential Revision: D35597630

fbshipit-source-id: 5e3c02ec2e5810aa58123b5e75b59241a4a1bdbb
2022-04-12 18:41:38 -07:00
Durham Goode
5b31787fa5 sparse: fix debugsparse*match apis with version 2 profiles
Summary:
Version 2 profiles are only respected when they are included by the
top-level sparse config. Instead of loading top-level config, debugsparsematch
and debugsparseexplain were loading the profile directly. This meant they didn't
see the version 2 metadata.

Let's fix it by loading a fake top-level config that simply includes the profile
in question. This matches the production behavior of how sparse profiles are
loaded anyway.

Reviewed By: StanislavGlebik

Differential Revision: D35592415

fbshipit-source-id: 71c1df08ce62ed2aba198940e7cb396e7cc5c96d
2022-04-12 18:22:09 -07:00
Durham Goode
b08a65b5da sparse: fix debugsparse* commands not treating the profile as the root
Summary:
When processing v2 profiles, the root config (i.e. .hg/sparse) is
special in that any v2 profile it loads will be unioned together. To do this, we
need to mark the root profile as isroot. Unfortunately, any command that
manually loaded a sparse profile directly, bypassed the isroot setting. This
meant loading v2 profiles was incorrect for debug commands.

Let's always set isroot for initially loaded configs. This means we should never
call getsparsepatterns with a sparse profile directly. Instead we should call it
with a .hg/sparse equivalent (like a string "%include $sparse_profile"). The
next diff will update some callsites to do this.

Reviewed By: StanislavGlebik

Differential Revision: D35594323

fbshipit-source-id: 8755d92b4fba49a0a27ae1e6298102f5b33b02be
2022-04-12 18:22:09 -07:00
svcscm svcscm
dcd1d7d048 Updating submodules
Summary:
GitHub commits:

f5689abdad
9540284d12
572ab5f99b
0e3beb3fa6
f934a0af46
2e1812b1be
90c587efdf

Reviewed By: wittgenst

fbshipit-source-id: 00f62bffff413b699ca8c32af0d96bfd2066debc
2022-04-12 18:14:47 -07:00
svcscm svcscm
cae0635344 Updating submodules
Summary:
GitHub commits:

c1a6f1b7fd
1623f85ff5
388c908d5b
11b3dc79aa
ef09b3d6b2
65b6e59178
01bcf9d9ac
feec4f4b68

Reviewed By: wittgenst

fbshipit-source-id: cad4449eda44bbfbef17611b83f119137ef6fc04
2022-04-12 17:43:07 -07:00
Aida Getoeva
e4e9c213e4 mononoke/walker: setup thrift service
Reviewed By: markbt

Differential Revision: D35546266

fbshipit-source-id: 358afd42b332f9c0daecf5518560f633c3ac7a52
2022-04-12 17:27:17 -07:00
Aida Getoeva
34c8127c75 mononoke/walker: possible values for chunk-by-public
Summary: Chunk by public node types param has only a subset of `NodeType` as possible values. This diff declares `ChunkByPublicArg` enum to represent these variants.

Reviewed By: markbt

Differential Revision: D35532343

fbshipit-source-id: 9177a1767840c50a32a9f8387ad1ff54dc522b6f
2022-04-12 17:27:17 -07:00
Aida Getoeva
2cd4e272ca mononoke/walker: add default and possible values to the new interned types args
Summary: Interned type params allow to pass `all` as one of the possible values. This diff declares `InternedTypeArg` that represent enum with all the possible values.

Reviewed By: markbt

Differential Revision: D35503706

fbshipit-source-id: 29e51d2601dd0306ef6456d88b611e11f656a9df
2022-04-12 17:27:17 -07:00
Aida Getoeva
06555936d1 mononoke/walker: setup possible values for hash validation args
Summary: Declare `HashValidationArg` that represents specific possible values for the hash validation params.

Reviewed By: yancouto

Differential Revision: D35503707

fbshipit-source-id: da6890ca0905eae810b97827e47d26db5cfe8b1c
2022-04-12 17:27:17 -07:00