Commit Graph

65117 Commits

Author SHA1 Message Date
svcscm svcscm
ed71130c38 Updating submodules
Summary:
GitHub commits:

99caf87980
5d25017097
d3c93befcc
6738d99cb4
12b8721d2d
c957163a4a

Reviewed By: jurajh-fb

fbshipit-source-id: 4767d003a63445196462ebe866c70d5ae37da63f
2021-05-02 14:13:16 -07:00
svcscm svcscm
6045dcdb20 Updating submodules
Summary:
GitHub commits:

576e9f9c17
b0c346309d
d3a2d58353
345550f23c
30f8413134
a8c6cdccd2
b00c352c25
ddfa279731
27cdd56579

Reviewed By: jurajh-fb

fbshipit-source-id: 3dae4a643e54d128f73a2142191b7a38905d9a18
2021-05-02 13:42:54 -07:00
svcscm svcscm
e1318a7618 Updating submodules
Summary:
GitHub commits:

678276c44d
6161a72b20
927db70fff
e54fc3f561
974decc11e
c581ef4c23
ab57e94ed7
71c4ff8752
b65e682143
9d70226445

Reviewed By: jurajh-fb

fbshipit-source-id: af275dab9e3298f941dc0ac72bc390b0b7a4eaab
2021-05-02 13:14:47 -07:00
svcscm svcscm
3b229abd8d Updating submodules
Summary:
GitHub commits:

4e7efffdca

Reviewed By: jurajh-fb

fbshipit-source-id: 02d73918ae2c585c7de4428f9ca36a0efa1700b4
2021-05-02 12:38:33 -07:00
svcscm svcscm
fbdb020bb0 Updating submodules
Summary:
GitHub commits:

cde543693e
942dcab9af
b205110ce6
d82fb654f0

Reviewed By: jurajh-fb

fbshipit-source-id: a3ee73a7f56a3b3ec570cdae35a2bbc85c4671a2
2021-05-02 12:07:43 -07:00
svcscm svcscm
f13efa4181 Updating submodules
Summary:
GitHub commits:

0ff876f34d

Reviewed By: jurajh-fb

fbshipit-source-id: cd1dbc4f88dad44a15b2a7af6b6bacf049fad00e
2021-05-02 11:33:01 -07:00
svcscm svcscm
d3fb4a39ca Updating submodules
Summary:
GitHub commits:

b8167cf317
30ead2d553
e4020034d3
6f9da3e87b

Reviewed By: jurajh-fb

fbshipit-source-id: 7f53dae02d5417bf72441eebe21e00d6746cbbd5
2021-05-02 11:04:58 -07:00
svcscm svcscm
1c714342ed Updating submodules
Summary:
GitHub commits:

7ca8439bc7
14428dc941
0526cf118b
7a6201f26f
c18913e5ca
7c4c9a74c2

Reviewed By: jurajh-fb

fbshipit-source-id: 21cac11b92f8f082d3a912727c8e3003faae7af4
2021-05-02 10:16:26 -07:00
svcscm svcscm
c3ea1251ee Updating submodules
Summary:
GitHub commits:

706a79501e
0d540f6b49
a423a5bdcf
e0dc2d48d2
d96ceae64c
53a5b0ec65
9eaac2d8de
f6944fbf4e
1aed6dcc11

Reviewed By: jurajh-fb

fbshipit-source-id: c47a45949bde593ce55cdd51c0150e806c9fa2a0
2021-05-02 09:47:24 -07:00
svcscm svcscm
697ea64ebd Updating submodules
Summary:
GitHub commits:

3925e20be7
f3249079a2
d2534eadea
43ab068592
9d95855497
882d76d4ac
39467a5b78
632b57efb5
9deaa86bfd
80b348ff58

Reviewed By: jurajh-fb

fbshipit-source-id: b4d5043307096d9766d88d67f0337a698ec9b8ed
2021-05-02 09:07:16 -07:00
svcscm svcscm
9d9cce7b78 Updating submodules
Summary:
GitHub commits:

93d52d8985

Reviewed By: jurajh-fb

fbshipit-source-id: 519ca279da474a0418fe3e15edb048bcfc4ea712
2021-05-02 08:14:32 -07:00
svcscm svcscm
65fd6d8508 Updating submodules
Summary:
GitHub commits:

9ba0fba1ee
885a59c479
abf95d0cd7
24e8e9a592

Reviewed By: jurajh-fb

fbshipit-source-id: c01853488b10669ad38e1543043a50b4ced8a085
2021-05-02 00:21:06 -07:00
svcscm svcscm
12db990fa4 Updating submodules
Summary:
GitHub commits:

c92b147e2e
7637fbcf99
9954c5db84
6cfaa85b6f
c3a5052e7b
dcf99fe124

Reviewed By: jurajh-fb

fbshipit-source-id: f654a11a46aabc36055b28dc4c15e72076cc345e
2021-05-01 23:40:15 -07:00
svcscm svcscm
df2e553fce Updating submodules
Summary:
GitHub commits:

3641dff6d7
d0d715ab49
c12a9ea780
906e585256
694af4c869
cc3af303c9
9183f23f15
a280a2942e
0224c0e552

Reviewed By: jurajh-fb

fbshipit-source-id: 075e2a7ed31a59332fdf780d0c87e614766082b6
2021-05-01 23:11:24 -07:00
svcscm svcscm
1b6b1fa578 Updating submodules
Summary:
GitHub commits:

53674cafe5
21f47941c0
d6547b1929
16a38e7d3c
01845a6e5a
b618d4f353
a2e75cdcf6
2180008321
6c095942d5
358c14ef45

Reviewed By: jurajh-fb

fbshipit-source-id: cdcce5c9acfe36c0077f0d032c2e8b5db37b6f4b
2021-05-01 22:04:48 -07:00
svcscm svcscm
39b93dfdfd Updating submodules
Summary:
GitHub commits:

ab79b8559a

Reviewed By: jurajh-fb

fbshipit-source-id: 6597113c703e1fd74df70a98cc8ab39bda663f75
2021-05-01 21:32:48 -07:00
svcscm svcscm
55e63cf4b3 Updating submodules
Summary:
GitHub commits:

20003a356f
4d089d4bf6
eec1aa2eda
83467cec02

Reviewed By: jurajh-fb

fbshipit-source-id: ede73531cbc89d05442007a3b13974f0d7264c7a
2021-05-01 20:53:27 -07:00
svcscm svcscm
b6df93d308 Updating submodules
Summary:
GitHub commits:

abfa0a8cd3
ce8d524333
eeb78a794a
8b3f2ee4fa
f156884799
fe921fe8a6

Reviewed By: jurajh-fb

fbshipit-source-id: 416ec4d482e451dcde770ecf65dd442c905e5956
2021-05-01 20:01:56 -07:00
svcscm svcscm
c5e65d2148 Updating submodules
Summary:
GitHub commits:

215caa3ab8
878d0bb0d4
d455bc8d3d
1e09853d85
fbb525fc7c
d2704752a6
09cf2e7585
f51c2bce34
89eac3a20d

Reviewed By: jurajh-fb

fbshipit-source-id: 015fd1c54eca57393177dda733d048625a1e5d15
2021-05-01 19:34:24 -07:00
svcscm svcscm
ec208b10d0 Updating submodules
Summary:
GitHub commits:

11ca663136
0172cbaa2b
77f4bd689a
8bacd38179
4d5c5ed0e7
5b4186ee5d
5e7044ae10
f3a32b5b56
c85b08e1b0
856d976d88

Reviewed By: jurajh-fb

fbshipit-source-id: 1d98b9bb52be979f14583195abecbcc4068b85b0
2021-05-01 19:05:22 -07:00
svcscm svcscm
c7b6c81172 Updating submodules
Summary:
GitHub commits:

6448458294

Reviewed By: jurajh-fb

fbshipit-source-id: ea06447c5f65a0f1c9d61f01bb35c400adf9ef2b
2021-05-01 18:37:49 -07:00
svcscm svcscm
c1f6addcdb Updating submodules
Summary:
GitHub commits:

68055094bc
dbab91c11d
82e1b4b9b5
91b5b9a4ba

Reviewed By: jurajh-fb

fbshipit-source-id: 46b828ca7a1cb3c018acc4265be3fb9296a64a8b
2021-05-01 18:04:32 -07:00
svcscm svcscm
2d6bd126fb Updating submodules
Summary:
GitHub commits:

ea54aac52a

Reviewed By: jurajh-fb

fbshipit-source-id: 62ea6c6028e52c51b518d596fbfcca3157379a4f
2021-05-01 17:30:36 -07:00
svcscm svcscm
6cde550262 Updating submodules
Summary:
GitHub commits:

e443029127
df04624c87
eb8428475f
c0f45d494b

Reviewed By: jurajh-fb

fbshipit-source-id: 18f218491c2b60202bf5bfa9e7cfb8bf55107998
2021-05-01 12:06:32 -07:00
svcscm svcscm
4b2b3f3908 Updating submodules
Summary:
GitHub commits:

3496e285be
591515a5d0

Reviewed By: jurajh-fb

fbshipit-source-id: 8f9d52c1ee4e6b8968d9b43379940ed6ac0add39
2021-05-01 11:36:40 -07:00
svcscm svcscm
2c28837233 Updating submodules
Summary:
GitHub commits:

e09f148d2d
1d76054346
05e5fbcad1
de6c2ad5ad
9896cb51ea
88ca80019f

Reviewed By: jurajh-fb

fbshipit-source-id: d1ebb4d5ba328b20019bc5e3257ae0119de7d8ec
2021-04-30 23:20:59 -07:00
svcscm svcscm
2f53554e5d Updating submodules
Summary:
GitHub commits:

925a8bd9c8
5b4fb2a6de
8d3f36a07a
43ddd6e99f
218cbe42bf
c14e428c1f
72276368f3

Reviewed By: jurajh-fb

fbshipit-source-id: 937d8854aaff65c2ccb695b2144ca7be4786f48e
2021-04-30 22:58:37 -07:00
svcscm svcscm
65d7ad85f0 Updating submodules
Summary:
GitHub commits:

133e222d25
e227a6473b
25df6b0ce6
974ad4fb50
c93278e44a
d0773074aa

Reviewed By: jurajh-fb

fbshipit-source-id: 2ce37e8e9c166a005988a1126c72eccbe070f86f
2021-04-30 21:12:30 -07:00
svcscm svcscm
ca01734eec Updating submodules
Summary:
GitHub commits:

e01bc2a558
fd9694eb22
e0b3b1ddb1
37859cabed
936df54bf5
ceeea40eca
9338d4b01c
ff4de21157
da5ad03a91
8f7ddb43fc

Reviewed By: jurajh-fb

fbshipit-source-id: d0f8ddcecf6ea18bf1f687b5f1a78550074ac6cd
2021-04-30 20:46:36 -07:00
Meyer Jacobs
c625107209 scmstore: introduce simplified, non-async, non-generic, non-combinator TreeStore
Summary:
There have been a bunch of problems with the previous approach to scmstore, so I'm going to try to start simple, make it feature complete, and then add async integration and factor out generic functionality as appropriate.

This change contains a `TreeStore` implementation with a single, synchronous, batch read method (supporting local storage, memcache, and legacy fallback, with writing missing to cache).

Add `TreeStoreBuilder`, which duplicates the existing `TreeScmStoreBuilder`, which some changes that make it easier to use for this case. I intend to unify these in the future.

Add an inherent impl for `EdenApiTreeStore` that provides subset of the `BlockingEdenApi` trait, which eliminates the need to unpack this type into a different adapter as the old `scmstore` code does. This might not be the right approach here, in reality we only need a `(client: Arc<dyn EdenApi>, repo: String)` here for trees, and that + `ExtStoredPolicy` for files, so we could take the `EdenApiAdapter` approach here too. The only reason we have to do any of this is because when `pyrevisionstore` is called to construct `scmstore` / `contentstore`, all we have is `Arc<EdenApiTreeStore>`. We could also just make the `EdenApiRemoteStore` fields public, and access them through the `Arc`.

Add `add_mcdata` method to `MemcacheStore`, `impl TryFrom<Entry> for McData`, and `impl From<McData> for Entry` for convenience when working with `MemcacheStore` (so we don't need to manually unpack the type and build `Entry`, or manually build a fake `Delta` from `Entry` to write).

Reviewed By: DurhamG

Differential Revision: D28076900

fbshipit-source-id: 7fdb5e8a42d052879eff449f60d40a83cfa7145d
2021-04-30 20:38:41 -07:00
Meyer Jacobs
66d4e89968 util: simplify signatures of get_local_path and get_cache_path
Summary:
Both `get_local_path` and `get_cache_path` take suffix as as `PathBuf`, even though they only ever use it as a reference. `get_local_path` also takes a reference to a `PathBuf`, even though it always clones it internally, and takes an `Option`, even though it just maps across the contents of the option.

I modified `get_local_path` to accept a `PathBuf` by move, which it uses directly, and to not take an `Option` (instead just calling `map` externally, removing some unnecessary unwraps), and for both functions to accept `impl AsRef<Path>` for suffix.

Reviewed By: DurhamG

Differential Revision: D28100527

fbshipit-source-id: df28b51c8005f3d95acc8e082b40adaab18e31c9
2021-04-30 20:38:41 -07:00
Meyer Jacobs
1db3addf43 indexedlogdatastore: Add public API for for clients to batch queries without locking for each individually
Summary: Add a Read/Write Guard API to IndexedLogHgIdDataStore which allows client code outside the module to perform a series of reads and writes without locking for each individually.

Reviewed By: kulshrax

Differential Revision: D28075788

fbshipit-source-id: 2a65a426f443e1a421198ad8b4c610e4822574f7
2021-04-30 20:38:41 -07:00
Meyer Jacobs
d00e31b5b0 indexedlogdatastore: Add public read/write/flush API to IndexedLogHgIdDataStore so callers don't need to access private fields
Summary:
Add get_entry, put_entry, and flush_log inherent methods to IndexedLogHgIdDataStore. Refactor callers to use them in cases where they don't lock across multiple reads / writes (to avoid performance regressions).

This should allow `ReadStore` and `WriteStore` to be moved out of the module.

Reviewed By: DurhamG

Differential Revision: D27979828

fbshipit-source-id: c9fb8c4ac68f67b285c72396509aa17928aa54ed
2021-04-30 20:38:41 -07:00
svcscm svcscm
7e42c25ff9 Updating submodules
Summary:
GitHub commits:

d4128fb90c
35d5ea8e3c
74e1e8aff5
f8f107fb55
104852af4d
3888f2e562
14a31e513a
4d5d3bfafe
29b5d25e7f
145955ac0c
ab54bd9695

Reviewed By: jurajh-fb

fbshipit-source-id: a746fbb7ff25227d54625fd5c01616ac3de97b6a
2021-04-30 19:24:03 -07:00
svcscm svcscm
5f64f5660d Updating submodules
Summary:
GitHub commits:

accff04d55
94d0da7726
8e83884180

Reviewed By: jurajh-fb

fbshipit-source-id: 8f9a66488e9bc2fd986e6a29dc62ebcdbd7ef527
2021-04-30 18:50:01 -07:00
svcscm svcscm
fd5b2a582a Updating submodules
Summary:
GitHub commits:

e84c60a23a
8772d56d78
f1704e4bab
a9827bd099

Reviewed By: jurajh-fb

fbshipit-source-id: 2f6e7f2cc0730fc2bbf4f4a87d94c252867929b5
2021-04-30 16:03:31 -07:00
svcscm svcscm
6289ecc2c3 Updating submodules
Summary:
GitHub commits:

bfb1ee369a
a8754fd5a4
062be063ef
1d638281f0
c7879f8aa1
365aadbe01
e256e74fdd
525a414845

Reviewed By: jurajh-fb

fbshipit-source-id: bf733075b335676d38f4842411e728ca642d3dd9
2021-04-30 15:37:01 -07:00
Jun Wu
f31f5ebcd5 commands: update help text of log
Summary: It has been wrong since 2014 (tweakdefault).

Reviewed By: kulshrax

Differential Revision: D28122703

fbshipit-source-id: c83ddbac2c6162e36672649c60c2e7916dc7cbd2
2021-04-30 15:13:21 -07:00
svcscm svcscm
60dfd68ed3 Updating submodules
Summary:
GitHub commits:

93b7c0ad15
fba3e061b9
51aadd18cd
c253fac75f
d2ca04e3ed
72080adf7d
4737f4250f
f354c46779
254b66501b
ed3edebea0

Reviewed By: jurajh-fb

fbshipit-source-id: 0cca9b0db1775249a90f7fce4a62eadb45e47092
2021-04-30 14:24:15 -07:00
svcscm svcscm
75bebc771a Updating submodules
Summary:
GitHub commits:

5bb4723f5d
b309a39d97
7769e72428
f8186b2e9a
60e1bac0b1
7163182b68
886faec18a
6bd926ede0
14db148483
f293c7f7c6
3876aa6a99

Reviewed By: jurajh-fb

fbshipit-source-id: f1b5da92db82d05a1c00ba2136453c25ebd920b2
2021-04-30 13:51:45 -07:00
svcscm svcscm
efaa53a819 Updating submodules
Summary:
GitHub commits:

0763b7bb8c
c130442938
81e0aac467
29ba83e52a
b4a4bd7444
b681dbfdd3
4928cf2b5c
6551d8303e
999819c383
ded42ebd0c
817450f0a6
d4797685b0

Reviewed By: jurajh-fb

fbshipit-source-id: 9af151bba814bcf9a150712c448ac3577f5bbc4c
2021-04-30 13:20:04 -07:00
Andrey Chursin
ba0ad33d20 checkout: use action map to construct CheckoutPlan
Summary: This is step towards unifying native merge/rebase structs with native checkout - we now construct native checkout plan from the action map, instead of directly making it from the diff

Reviewed By: quark-zju

Differential Revision: D28078156

fbshipit-source-id: 318d7e419ca9fef15a4aebf7494451f69a3bbbe5
2021-04-30 13:04:57 -07:00
Andrey Chursin
dd5909abe8 checkout: read native checkout concurrency from config
Summary:
This diff makes concurrency of native checkout to be configurable
This config can be used to reduce concurrency on platforms that are known to cause issues with watchman due to too many checkout operations

Reviewed By: quark-zju

Differential Revision: D28074993

fbshipit-source-id: 0a09fcf3ae48d08cead36da56c06b546aecd16b4
2021-04-30 13:04:57 -07:00
Andrey Chursin
9a499113fc checkout: make checkout configurable
Summary: This diff refactors out `Checkout` component from checkout plan and allows to configure parallelism in checkout

Reviewed By: quark-zju

Differential Revision: D28074994

fbshipit-source-id: 72933c757d6e27615d1ef2bb4652bc67c9c3253d
2021-04-30 13:04:57 -07:00
svcscm svcscm
93554f0d5a Updating submodules
Summary:
GitHub commits:

0075b45737
6ed9d37837
f491986a65
d808a5e2e1

Reviewed By: jurajh-fb

fbshipit-source-id: 16f3ce8172e28f0145f0170c666069950b153bb0
2021-04-30 12:42:42 -07:00
svcscm svcscm
ba8ca52c75 Updating submodules
Summary:
GitHub commits:

f696cbb4c7
2c419fcd14
e6124ce9f5
f57119b4a6

Reviewed By: jurajh-fb

fbshipit-source-id: 0d6ccf76687f5dbd5ffde9621e536c0e157c4a57
2021-04-30 10:36:12 -07:00
svcscm svcscm
0a917e4aa3 Updating submodules
Summary:
GitHub commits:

a9347ef510
0008e1ecca

Reviewed By: jurajh-fb

fbshipit-source-id: 1e69152f1b79fbbe1ec95936422b160dbc05cf44
2021-04-30 10:02:59 -07:00
Stefan Filip
a56f662e1c segmented_changelog: rename Vertex to DagId
Summary:
Vertex is old. It no longer makes sense with the current structure. The main
issue is that the dag crate now has VertexName which may confuse readers at
first glance.
When Vertex was added DagId would have been confusing because we had structs
that were named Dag that did not use DagId directly. Those structures are now
renamed and DagId is consistently used for dag crate structures.

The IdMap database would still use the vertex name until someone runs a
migration to rename the column.

I am not 100% that this is needed, but it's a change that's been on my mind.

Reviewed By: quark-zju

Differential Revision: D28110184

fbshipit-source-id: b996a7545a90acc25e2bb5326f2731b95c8740b4
2021-04-30 09:11:03 -07:00
svcscm svcscm
b1fa8a07d6 Updating submodules
Summary:
GitHub commits:

5f6d41f9d0
52ecb153bb
702bca1889
3b8895adb6
2caeb94ed4

Reviewed By: jurajh-fb

fbshipit-source-id: be5b02f4dd60ba66d29daad38b72f40fdec03958
2021-04-30 05:45:38 -07:00
Alex Hornby
d7330b7557 mononoke: walk from BonsaiHgMapping to HgChangesetViaBonsai for consistency
Summary:
Previously there were two different paths to HgChangeset.  This diff unifies them, so that when walker state.rs is checking for a previous visit it will find that it happened.

For existing walks of changesets in the NewestFirst direction this wasn't causing a problem, however the next diff in stack adds support for OldestFirst walks.  In the OldestFirst case the mismatch in paths to HgChangeset was leaving a deferred edge to visit when everything should have been visited in previous chunks.

Differential Revision: D28095569

fbshipit-source-id: ccba4a679fc28bde042cfc222e5097c84fa968c0
2021-04-30 05:43:39 -07:00