Commit Graph

67775 Commits

Author SHA1 Message Date
CodemodService Bot
15535f044d Daily common/rust/cargo_from_buck/bin/autocargo
Reviewed By: krallin

Differential Revision: D30835464

fbshipit-source-id: 76918978f1c0f372ce8a4e8a57223e081e5ca993
2021-09-09 09:03:15 -07:00
Jan Mazur
7f81330da1 add x2pagentd info to hg rage
Summary: This proved useful couple of times when folks experienced problems with the agent.

Reviewed By: ahornby

Differential Revision: D30837676

fbshipit-source-id: aec769f60a09ecb83857e6e60d49a5662b4ce0b2
2021-09-09 08:49:49 -07:00
svcscm svcscm
403f1445bf Updating submodules
Summary:
GitHub commits:

6598ec3d96
84bbbfb9c3
af88b53203
c1d374b264
d99b427308
4de2139b44
fab15f1921
09968796dc
779ec84abb
ad4b50d4d7

Reviewed By: jurajh-fb

fbshipit-source-id: 28f0f1d3a12a739a1194de6bb34ae171e654c89d
2021-09-09 08:42:01 -07:00
Jun Wu
315bec71f4 revlogindex: revert D30732364 and update tests
Summary:
Add back the octopus merge support for revlog.
This recommits D30686451 (b13579fdf9) and D30686450 (7eb11cb392) as-is, with updates to test files.

Original commit changeset: 9f213766e7c4

Reviewed By: StanislavGlebik

Differential Revision: D30784681

fbshipit-source-id: ace0c317652ad8b657c8edd9a0130532dad53078
2021-09-09 08:29:03 -07:00
Yan Soares Couto
6f635f7d8a No need to implement for Arc
Summary:
As far as I could tell, this was legacy from some refactorings.

It was only used in one place, and it was easy to fix.

Also, if we really need it in the future, we can probably use `#[auto_impl]` instead of doing it manually.

Reviewed By: StanislavGlebik

Differential Revision: D30574803

fbshipit-source-id: 20715364713775818fe0e83844637f48b310d87f
2021-09-09 07:43:29 -07:00
Yan Soares Couto
175a82712a Fix createremote no working from non-root folder
Summary: createremote only worked from root of the repo. This fixes it, and tests that in the integration test

Reviewed By: StanislavGlebik

Differential Revision: D30546582

fbshipit-source-id: 84aa304d346e448b44e5d7fb9e9607d84a67da25
2021-09-09 07:43:29 -07:00
Yan Soares Couto
29606df2fe Restore to correct parent and deleted files
Summary:
This adds basic logic for `snapshot restore` command.
- It updates to the parent of the snapshot
- It loads the snapshot changes

For now I did not do changes/tracked changes, as it will need to download the file contents, which will need a new edenapi endpoint, so I'll leave it for a future diff. It just restores your deleted files for now.

Reviewed By: StanislavGlebik

Differential Revision: D30543507

fbshipit-source-id: 080588ceff0ecd595ce739044f0d4118fb8e1a3f
2021-09-09 07:43:29 -07:00
svcscm svcscm
9a2fdca6d9 Updating submodules
Summary:
GitHub commits:

9e6f2ba202
fec77e2561
e6f3716443
118a785f3b
26076e9ddb
2cded62bd6
00f14700b4
2d846f590c
b51f864fd8
1cd1da38f8

Reviewed By: jurajh-fb

fbshipit-source-id: 7cf0e145c11c69d1699755b98f86ab0a9814ad83
2021-09-09 07:29:39 -07:00
svcscm svcscm
ddb515ab75 Updating submodules
Summary:
GitHub commits:

c0b4009784

Reviewed By: jurajh-fb

fbshipit-source-id: ff11c28fdece73bcacbcc211376195c4f9e097d1
2021-09-09 06:31:37 -07:00
Stanislau Hlebik
315a8b311d mononoke: add benchmark mode to backfill_derived_data
Reviewed By: markbt

Differential Revision: D30837581

fbshipit-source-id: 0c778b629f99c6110a78500c235131d0cb12f9aa
2021-09-09 05:01:18 -07:00
Liubov Dmitrieva
c9810f8459 log sync reason
Summary:
log sync reason for `hg cloud sync`.

This will help us to investigate issues better and measure impact for new Eden Api Uploads case by case (after amend, rebase, etc) on different platforms.

Reviewed By: yancouto

Differential Revision: D30775519

fbshipit-source-id: 696e954ec8db19226fb67ad0952e23e2b67e9931
2021-09-09 04:31:22 -07:00
svcscm svcscm
28994c87ed Updating submodules
Summary:
GitHub commits:

132041aade
865baf2cd8
759e8f11e7
caca351eb9

Reviewed By: jurajh-fb

fbshipit-source-id: 8055ac1d9a75646311fa896d522f60004018e962
2021-09-09 00:29:26 -07:00
svcscm svcscm
342826a25f Updating submodules
Summary:
GitHub commits:

36155c16d9
2dd7d46c7a
b566d9490a
863e6c5c66
b1969b6808

Reviewed By: jurajh-fb

fbshipit-source-id: c281e5c62048bb8455f02a167d7b9f4ea9e06048
2021-09-08 23:50:18 -07:00
svcscm svcscm
4d972aba9f Updating submodules
Summary:
GitHub commits:

17fd15d368
a46d38e2a2
3decfee947
15dda6e28c
a59788f2b5
86c79f5605

Reviewed By: jurajh-fb

fbshipit-source-id: 9094b62a97470b5a5626e61b32d6123c4fafa7e2
2021-09-08 23:16:55 -07:00
svcscm svcscm
3e365692b8 Updating submodules
Summary:
GitHub commits:

b7b8b8dd03
346d7c0f2b
3c0d7357bb
0e75cfefbb
1a92efd089
37a999ae56
17994927b4
9ca2bb4bed
f9515ab186

Reviewed By: jurajh-fb

fbshipit-source-id: df2c89e0684b1add302980083f5de121f8e1bb0d
2021-09-08 22:39:01 -07:00
svcscm svcscm
dd22fe7cfe Updating submodules
Summary:
GitHub commits:

1580c4884c
9d0cb7cacf
a4a4c0fe68
4a527a3e3d
eea566864e
e41e0902b2
e5cacfc424
c22cf41ea3
a4c87a8615
94f24cadcb
f6f75e7f14
363bad4d16

Reviewed By: jurajh-fb

fbshipit-source-id: 6b2847b5f6ecac372f614461ac3adc5e4aacf282
2021-09-08 22:12:49 -07:00
svcscm svcscm
c25cd600ff Updating submodules
Summary:
GitHub commits:

0733a57816
056fe358ab
55608a43ad
50e97274e1
45175ca2e1
8266b62893
fea19aad81
d4f413866d
f2344dffc5
0806e00b32
0f852009fa
d0b736d0d3

Reviewed By: jurajh-fb

fbshipit-source-id: 673e8180ea3e9329d65ca478618d28d72d5a0801
2021-09-08 22:12:49 -07:00
svcscm svcscm
17b777bbc7 Updating submodules
Summary:
GitHub commits:

1580c4884c
9d0cb7cacf
a4a4c0fe68
4a527a3e3d
eea566864e
e41e0902b2
e5cacfc424
c22cf41ea3
94f24cadcb
f6f75e7f14

Reviewed By: jurajh-fb

fbshipit-source-id: b0a58ddbbeb0fa3da1f25cfa2edad6e8245c3a09
2021-09-08 22:05:16 -07:00
svcscm svcscm
00fa4db982 Updating submodules
Summary:
GitHub commits:

7b9ff9da05
c7f95cda68
132363da33
8ab36b48fc
0662154ec7
297b1bd857
f134bf9be1
a4c87a8615
47ec923cde
6dbbd501b7
363bad4d16

Reviewed By: jurajh-fb

fbshipit-source-id: e221fd356c07a3a3bc7082608a6a27bceabb8ea3
2021-09-08 21:30:52 -07:00
svcscm svcscm
a7e209088d Updating submodules
Summary:
GitHub commits:

0733a57816
056fe358ab
55608a43ad
7d8dfb91b3
50e97274e1
fea19aad81
d4f413866d
8d25c58e51

Reviewed By: jurajh-fb

fbshipit-source-id: c2e7dd5e139f197dd291d9029997791072ae052b
2021-09-08 20:58:35 -07:00
David Tolnay
5e9b8cd4b2 third-party/rust: Update thiserror from 1.0.23 to 1.0.29
Summary:
Release notes:

- https://github.com/dtolnay/thiserror/releases/tag/1.0.24
- https://github.com/dtolnay/thiserror/releases/tag/1.0.25
- https://github.com/dtolnay/thiserror/releases/tag/1.0.26
- https://github.com/dtolnay/thiserror/releases/tag/1.0.27
- https://github.com/dtolnay/thiserror/releases/tag/1.0.28
- https://github.com/dtolnay/thiserror/releases/tag/1.0.29

The pertinent feature is 1.0.29 adding support for inferred trait bounds on error types that contain generic type parameters. I remember someone asking for this in fbcode but I forget what project it was for.

```
use thiserror::Error;

#[derive(Error, Debug)]
pub enum MyError<E, F, G> {
    #[error("thing {0} ({0:?})")]
    Variant(E),
    #[error("some error")]
    Delegate(#[source] SomeError<F>),
    #[error("err 0o{val:o}")]
    Octal { val: G },
}
```

```
// generated

impl<E, F, G> std::error::Error for MyError<E, F, G>
where
    SomeError<F>: std::error::Error + 'static,  //'
    Self: std::fmt::Debug + std::fmt::Display;

impl<E, F, G> std::fmt::Display for MyError<E, F, G>
where
    E: std::fmt::Debug + std::fmt::Display,
    G: std::fmt::Octal;
```

Reviewed By: zertosh

Differential Revision: D30758449

fbshipit-source-id: b3afe08fe8c8affa26693df9cbb63e04632ea1d3
2021-09-08 20:49:35 -07:00
svcscm svcscm
29f8f25b49 Updating submodules
Summary:
GitHub commits:

fbfa7d0dcd
7d5b58d63c
c018d1a5df
216f478396
8266b62893
d467e61d6e
73cfce4367
0806e00b32
0f852009fa

Reviewed By: jurajh-fb

fbshipit-source-id: ca96df33198c3cd49aff18260bf647c277da527f
2021-09-08 20:06:40 -07:00
svcscm svcscm
f28f7414ef Updating submodules
Summary:
GitHub commits:

8515af58c6
6c2819b082
1cfbf9de5b
a264f93603
b2c000570a
51e80cec42
b3bf57ee16
f2344dffc5
88826329d5
a5a7834382
d0b736d0d3

Reviewed By: jurajh-fb

fbshipit-source-id: 3dcd6fea00c5d27b5dbdaeb47865ba1028506d33
2021-09-08 20:06:40 -07:00
Adam Simpkins
adb0571dcc add an EDEN_HAVE_USAGE_SERVICE config macro
Summary:
Put code using the usage service behind an `EDEN_HAVE_USAGE_SERVICE` macro.
Previously the C++ code was simply guarded by a `__linux__` check, and the
CMake code did not have a guard at all.  This caused builds from the GitHub
repository to fail on Linux, since the code attempted to use the usage service
client which was not available.

Reviewed By: xavierd

Differential Revision: D30797846

fbshipit-source-id: 32a0905d0e1d594c3cfb04a466aea456d0bd6ca1
2021-09-08 19:50:44 -07:00
Durham Goode
eed3ce44f3 sparse: remove default "**" for sparse profiles
Summary:
In the v1 sparse config arrangement, if all rules were excludes then we
would include a default "**" rule. This was always a little confusing and caused
some weird behavior. Let's remove it from the v2 world.

This actually bit us because the fbsource_exclude profile only has excludes,
which caused it to insert a ** include, which pulled in all of fbsource. We
could fix it to only check if a profile is excludes-only once all the transitive
profiles have been loaded, but I think the cleaner fix is to remove this logic
since it's confusing and never actually used in production.

Differential Revision: D30824082

fbshipit-source-id: adcf4c820cc9f7636f79759d03fc0b387b9f55fa
2021-09-08 19:50:44 -07:00
svcscm svcscm
a1426fcd74 Updating submodules
Summary:
GitHub commits:

7b117c3d54
b00eb2dd4d
7bc33ba554
4f4c0ff8e1
1d55db4752
e8d7d4b8a6
7757fa106f
fa853f0ea6
8e7f5a4e1c
75859c4faf
c113096378
ef29d02deb

Reviewed By: jurajh-fb

fbshipit-source-id: c5dd4375ab2f17f51a554bfba600ad34b0862291
2021-09-08 19:20:28 -07:00
Durham Goode
1c4e8d7de7 http-client: propagate HttpClientErrors errors from inside decode stream
Summary:
Any error inside the decode stream was being propagated up as a decoder
error. This caused higher level code to not handle certain errors appropriately.
For instance, the lfs retry logic only retries for certain classes of curl
errors. So let's propagate up HttpClientErrors as is.

Reviewed By: kulshrax

Differential Revision: D30798108

fbshipit-source-id: 7316f6cdc47de090c202ff6a1f28d0fba60f7a15
2021-09-08 18:48:31 -07:00
Zeyi (Rice) Fan
ec8fe69d32 tokio-uds-compat: fix UB and make it actually work
Summary:
The previous version had two issues:

1. It's UB to cast uninit away as it may be actually uninitialized.
2. Because of the cast, the buffer was not actually written nor advanced after written to, causing the caller to think nothing was read.

https://docs.rs/tokio/1.11.0/tokio/io/struct.ReadBuf.html

Reviewed By: dtolnay

Differential Revision: D30823808

fbshipit-source-id: d5f67e4c03f1d63f2241421dd35082ee96b5afd8
2021-09-08 18:39:56 -07:00
Adam Simpkins
26c3f123c9 reflect the wangle github branch rename from master to main
Summary:
The primary branch in the GitHub wangle repository has been renamed from
`master` to `main`.  Update the getdeps manifest to reflect this, so that
getdeps builds correctly clone the repository.

Reviewed By: xavierd

Differential Revision: D30822418

fbshipit-source-id: 9670fff1e85e77adf84485ff8f2236f8826630ef
2021-09-08 18:32:49 -07:00
svcscm svcscm
1422cab589 Updating submodules
Summary:
GitHub commits:

0a6b949d56
eff25477a3
30476369a8
eca992933d
6086e02275
98e3754443
c086a0564b
84b2aa0d96
ec19b88ad1
8e5c41e292
11369aa909

Reviewed By: jurajh-fb

fbshipit-source-id: c04c80a17a8799ab290840d91413530d54ca4124
2021-09-08 18:00:23 -07:00
svcscm svcscm
c2469ac19a Updating submodules
Summary:
GitHub commits:

91b962e336

Reviewed By: jurajh-fb

fbshipit-source-id: 71434a7a8f98305b862acfbed90bd7207849fab5
2021-09-08 17:55:19 -07:00
svcscm svcscm
f04bc52d53 Updating submodules
Summary:
GitHub commits:

eca992933d

Reviewed By: jurajh-fb

fbshipit-source-id: e1b7404521d403496973ef4a2220528aab4798d8
2021-09-08 17:32:32 -07:00
Andrey Chursin
8f2420d83b cpython-ext: fix py-cell
Summary: For some reason it got broken, need to call `as_ref()` to properly cast type

Reviewed By: quark-zju

Differential Revision: D30740629

fbshipit-source-id: f49275caae9d360859e97c03709a720dabc22e9e
2021-09-08 16:51:22 -07:00
Chad Austin
0b47b645fe remove dead code from serializeTree
Summary:
LocalStore no longer special-cases Tree objects with kZeroHash
ids. Instead, unconditionally write into LocalStore with the Tree's
hash.

Reviewed By: xavierd

Differential Revision: D29155470

fbshipit-source-id: aee3840fe8dfd7aa46305b6db6f7950efb2e41d2
2021-09-08 16:27:10 -07:00
Chad Austin
a4ba22dc48 rename Hash to Hash20
Summary:
In preparation for expanding to variable-width hashes, rename the
existing hash type to Hash20.

Reviewed By: genevievehelsel

Differential Revision: D28967365

fbshipit-source-id: 8ca8c39bf03bd97475628545c74cebf0deb8e62f
2021-09-08 16:27:10 -07:00
Jun Wu
7947c378c4 context: make ctx.pareents() support >= 2 parents
Summary:
Do not assume `changelog.parents` returns 2 items.

This changes the behavior for root commits. `parents()` used to return
`[repo[nullid]]`, now it returns `[]`.

Reviewed By: andll

Differential Revision: D30784684

fbshipit-source-id: 73f58c85457391fb74b96b88dc4dcb69a25e81ac
2021-09-08 16:19:10 -07:00
Jun Wu
9ec959ea26 absorb: work with ctx.parents() returning empty list
Summary:
In a future change, `ctx.parents()` returns `[]` instead of `[repo[nullid]]`
for root commits. Make the change to preserve absorb behavior.

Differential Revision: D30816385

fbshipit-source-id: afded91a6e72d4eb54faf87dcdfc52a81ea1d66f
2021-09-08 16:19:10 -07:00
Jun Wu
e37b3f1501 rebase: work with ctx.parents() returning empty list
Summary:
In a future change, `ctx.parents()` returns `[]` instead of `[repo[nullid]]`
for root commits. Make the change to preserve rebase behavior.

Differential Revision: D30816386

fbshipit-source-id: ca7c489991ae149c9640b7da0e6e54f76afbc250
2021-09-08 16:19:09 -07:00
Jun Wu
e8efb51f3d codemod: parents()[0] => p1()
Summary:
We're going to change parents() to return an empty list instead of `[nullctx]`
for roots. This change makes it more compatible with upcoming changes.

Reviewed By: andll

Differential Revision: D30787305

fbshipit-source-id: 1de523964faa64a6496a7bb0197af597e393d859
2021-09-08 16:19:09 -07:00
Jun Wu
42e09b6227 treestate: add p1, p2 methods
Summary: They will be used in the upcoming changes.

Differential Revision: D30816387

fbshipit-source-id: 61db432c9065b038c2d8649a4f9e97f3bb68fea1
2021-09-08 16:19:09 -07:00
Jun Wu
810f7d9cfe changelog2: make parents optionally filter nullids
Summary: This will be used by the next change.

Reviewed By: andll

Differential Revision: D30784683

fbshipit-source-id: 59a37c5f428eaf5950584d8f17471d358bfefee7
2021-09-08 16:19:09 -07:00
Carolyn Busch
26add70c70 add http prefix lookup to pull
Summary: Integrate http hash prefix lookup into the pull operation. One unfortunate change here is that if the prefix is ambiguous, we're only able to output possible full hashes as suggestions. Previously we'd also print commit log information. To retain that we'd need to add an error option to the response and have the server send back an error message with the log information or send another request to download the extra information.

Reviewed By: andll

Differential Revision: D30716050

fbshipit-source-id: 33f8bc38b0bfe7fce4ec11cd8def7feda3b3d3da
2021-09-08 16:05:21 -07:00
Carolyn Busch
dee2a40e35 add prefix lookup python bindings
Summary: Add hash prefix lookup to python bindings.

Reviewed By: andll

Differential Revision: D30716052

fbshipit-source-id: 00c1a20b1bf924c5eb4596fefe15915bbc7ce55c
2021-09-08 16:05:21 -07:00
Carolyn Busch
fede26c2fc add hash prefix lookup to eagerrepo
Summary: Add implementation for hash prefix lookup to eagerrepo.

Reviewed By: andll

Differential Revision: D30716552

fbshipit-source-id: 89e6517b504a7571d03ef50692e13c9fcfabc485
2021-09-08 16:05:21 -07:00
Carolyn Busch
820b90c69d add hash prefix lookup to client
Summary: Add hash prefix lookup to the edenapi client.

Reviewed By: andll

Differential Revision: D30716051

fbshipit-source-id: 26dd0ecbfc836c9799c46c5a38aa9570bdb902db
2021-09-08 16:05:21 -07:00
svcscm svcscm
45b393b3fe Updating submodules
Summary:
GitHub commits:

e5fbb17e37
e03a09ffb6
9a4ae6cc13
7213de6729

Reviewed By: jurajh-fb

fbshipit-source-id: 9c312ce817ecec87ef1e04773d48fe4657e20702
2021-09-08 14:48:21 -07:00
svcscm svcscm
e13e220550 Updating submodules
Summary:
GitHub commits:

dfbe1579f8
fcafe7e3eb
d52cb4b3c7
74904a4920
dd092c2d11
f8727a517a
3a5fad73fe

Reviewed By: jurajh-fb

fbshipit-source-id: 6ea18989e3799c363fec4724e1fa0002aa2a55ed
2021-09-08 14:25:01 -07:00
svcscm svcscm
63bc7656c4 Updating submodules
Summary:
GitHub commits:

e205768fe1
e36287f75f
391f6540f8
07f6341b54
348c31b37f
6103eeaf65

Reviewed By: jurajh-fb

fbshipit-source-id: a09c8bb3d45f1f54dae5a420d7546b45fbc8a498
2021-09-08 13:52:34 -07:00
svcscm svcscm
f91f455340 Updating submodules
Summary:
GitHub commits:

a2661d802f
10a66e79fa
b8a595adc0
12920d653b
91b95cadee
0753785c6c
befa13ddaf
212c7ebb22
c20a28703f
48cbecc834
8b2c26e1f9

Reviewed By: jurajh-fb

fbshipit-source-id: c0834a802f573b86e0e6fdb21722ea7a583a3691
2021-09-08 13:08:41 -07:00
svcscm svcscm
e993f066ae Updating submodules
Summary:
GitHub commits:

2f6fd09312
848b6dc8b1
d90160cdea
298140eb95
905695fb5e
48201aa9cf
a47d5b45ea
1dbeffa6fd
d8f508c386
2873dc81ac

Reviewed By: jurajh-fb

fbshipit-source-id: 16a677660a99352be573c02ee4b8edd6895d687c
2021-09-08 12:23:45 -07:00