Commit Graph

76340 Commits

Author SHA1 Message Date
Saul Gutierrez
9d9bcc7d2e help: add type hints to ported Rust commands
Summary: Recently we have partially or entirely ported some Rust commands (`clone`, `config`, `status`), but those commands are missing the type hints for some of its option. These type hints were available in the Python version of these commands, and this diff restores that.

Reviewed By: quark-zju

Differential Revision: D38503325

fbshipit-source-id: f6ef531cf0b655d8fcde1acabc478b866338da79
2022-08-08 15:29:56 -07:00
Saul Gutierrez
60b27da198 help: allow Rust commands to specify a type hint for its options in the help
Summary: Previously, commands that were written in Python would allow to specify types such as `PATTERN`, or `REV` in the help options. This diff modifies the `define_flags` macro to allow Rust commands to add such type of help.

Reviewed By: quark-zju

Differential Revision: D38494676

fbshipit-source-id: d314707b5cf4e72954051fc383b61432ec316c88
2022-08-08 15:29:56 -07:00
Open Source Bot
704567c008 Updating submodules
Summary:
GitHub commits:

98977cdc0a
4aca36cf0e
83c76a73ed
54dcc641a2
945db1c280

Reviewed By: bigfootjon

fbshipit-source-id: 039994a91f6ab59f8261164cf9312574e1c67f74
2022-08-08 15:01:19 -07:00
Open Source Bot
9389f37d0e Updating submodules
Summary:
GitHub commits:

d4b6cf3a6d
8742f52b07
03d40853e9
563f574372
76c2060e6a
5ed390853e
e78f728861

Reviewed By: bigfootjon

fbshipit-source-id: ecb7b3d2f59a0039ae73354315d1d494fdef1414
2022-08-08 14:14:13 -07:00
Open Source Bot
44316d0784 Updating submodules
Summary:
GitHub commits:

530e13ebc6
ed68123f49
78fe1f20ff
5d57615f20
c903876c18
3140e41bfb
9f64780a21
2490489c34

Reviewed By: bigfootjon

fbshipit-source-id: 4d53d0adbbfd8c68e6d69a0e7bf2a2ba9430c4bb
2022-08-08 13:01:29 -07:00
Genevieve Helsel
244bf89b5b fix typo in Overlay.h
Summary: just found while browsing

Reviewed By: fanzeyi

Differential Revision: D38508694

fbshipit-source-id: 18f30854e41921130275f17842570323d19a9ba3
2022-08-08 12:35:59 -07:00
Open Source Bot
fe943ad86a Updating submodules
Summary:
GitHub commits:

c9de927b41
028e7cf6fd
880f853b17
6ea357b8d2
7663d72b8d

Reviewed By: bigfootjon

fbshipit-source-id: 32991fcf154beafa1af37c7a74c21bd5a688f474
2022-08-08 11:50:26 -07:00
Jun Wu
2cf4d0e731 eagerepo: fix treemanfiest flushing
Summary:
I thought fileslog handles it at transaction close but this turns out to be
necessary.

Reviewed By: jordanwebster

Differential Revision: D38446489

fbshipit-source-id: f0034fb15751dbaf5e4e661bf7d113e8911b5d8f
2022-08-08 11:41:01 -07:00
Jun Wu
d55e8d8165 eagerepo: add invalidatelinkrev store requirement
Summary:
EagerRepo format does not maintain meaningful linrkevs. Use the store
requirement to clarify.

Reviewed By: jordanwebster

Differential Revision: D38446490

fbshipit-source-id: 6cbdcaa8851b335239f91b2c29a5779bdb05f79f
2022-08-08 11:41:01 -07:00
Jun Wu
7a25581fe1 eagerepo: add parents filelog API
Summary:
This API will be used by the next change.
As we're here, fix the `_get_content` implementation.

Reviewed By: jordanwebster

Differential Revision: D38446488

fbshipit-source-id: 9b730fc07db4d1e9e6bce438006fede42bd9e649
2022-08-08 11:41:01 -07:00
Jun Wu
d801771267 exchange: make findblobs return paths
Summary: This will be used by the next change.

Reviewed By: jordanwebster

Differential Revision: D38446491

fbshipit-source-id: 4ee66d8bc62866f28897fa48b9365ebdf7e5ca54
2022-08-08 11:41:01 -07:00
Jun Wu
2e85e1c3ef exchange: make findblobs more flexible
Summary: Take `repo` and `nodes` instead of a `pullop` so it can be used in other cases.

Reviewed By: jordanwebster

Differential Revision: D38434429

fbshipit-source-id: 07e1887db750a51bb2bac21bf7ff3224fd7536a4
2022-08-08 11:41:01 -07:00
Durham Goode
5ceb8c2281 tests: fix cargo test on Windows
Summary: A recent changed made some PyByteArrayObject logic require a python version number. We specify it via buck and via make, but this cargo test logic didn't. Let's add it.

Differential Revision: D38261443

fbshipit-source-id: ce7e794f99d0e0acf890c615f6f9c93b4ab68689
2022-08-08 11:39:20 -07:00
Andres Suarez
0d7d2e9dce Update async-compression 0.3.12 to 0.3.14
Reviewed By: diliop

Differential Revision: D38504144

fbshipit-source-id: 1cd786a3d260847281729b19c29e402377edca22
2022-08-08 11:02:03 -07:00
Open Source Bot
c5e52dc913 Updating submodules
Summary:
GitHub commits:

9dd992775a
66053108c3
251ea84f4b

Reviewed By: bigfootjon

fbshipit-source-id: d1f424c71b203fe0ba939410abd9738c017379c3
2022-08-08 10:45:22 -07:00
Youssef Ibrahim
9edaddc238 Add pagination support for commit_file_diffs
Summary:
Adds an optional parameter diff_size_limit to the commit_file_diffs thrift API, that limits the total byte size of the returned diffs. If that limit is reached the API returns the diff so far and the names of the file pair it stopped at.

Also adds diff_size_limit option to the scs client.

Reviewed By: markbt

Differential Revision: D38352190

fbshipit-source-id: 419ce0cc14bc10325da7e2d63962b61f0fec22ce
2022-08-08 05:55:18 -07:00
Harvey Hunt
8870160e3c mononoke: Fix warnings in OSS build
Summary:
The OSS build has included warnings for a while. Fix them up by removing some
imports and renaming `fb` to `_fb`.

This log includes some of the warnings that I am fixing:
https://fburl.com/sandcastle/7cu7gsbz

Reviewed By: mzr

Differential Revision: D38429943

fbshipit-source-id: 27145be3891913fd56cf85e570d1fa2d0d0cc4ae
2022-08-08 05:24:32 -07:00
Mateusz Kwapich
474614a431 rename new_context method
Summary:
This method is a footgun: it's easy to find for bootcampers working
on migration to new CLI and it's not a good choice for all usecases.

Let's rename it to stress out that it provided basic logging which won't suit
every usecase.

Reviewed By: clara-9

Differential Revision: D38469579

fbshipit-source-id: 5b08b0b1e5de4d2a54f2ed32f7a8585e19fd3c22
2022-08-08 04:06:51 -07:00
Mateusz Kwapich
97d45dc989 fix logging in segmented changelog tailer
Summary:
D38282271 (59b5ae7e1f) accidentally broke it. The next diff makes that mistake a bit harder
to make.

Reviewed By: clara-9

Differential Revision: D38469580

fbshipit-source-id: bed71f6d7f39df3f3f25934f5c6a6a1c7bb19dcc
2022-08-08 04:06:51 -07:00
Pyre Bot Jr
595913130c Add annotations to eden/scm/edenscm/hgext/commitcloud/interactivehistory.py
Reviewed By: jordanwebster

Differential Revision: D38484471

fbshipit-source-id: cc6d980e353413486e163722cd15ffcbd709b6aa
2022-08-08 03:26:04 -07:00
Pyre Bot Jr
e6ed67d63e Add annotations to eden/scm/edenscm/mercurial/drawdag.py
Reviewed By: jordanwebster

Differential Revision: D38490022

fbshipit-source-id: 600bcf3f4c71d65627ddedfd4e28e7732aeba248
2022-08-08 03:26:01 -07:00
Open Source Bot
5370fde416 Updating submodules
Summary:
GitHub commits:

e622ec87da
c3bb6203f1
b9f67415fb
7a3faf0bd8

Reviewed By: bigfootjon

fbshipit-source-id: 342f59274b9b6701ff06d3df6a9bbcdf412208f1
2022-08-08 01:56:35 -07:00
Open Source Bot
6df16ef222 Updating submodules
Summary:
GitHub commits:

4a318d1eef

Reviewed By: bigfootjon

fbshipit-source-id: 66e2ab1bcbcc34cc61933163d9842569e10d541a
2022-08-08 01:08:53 -07:00
Open Source Bot
63feaa8181 Updating submodules
Summary:
GitHub commits:

5fe8b8d97d
e3fd1d72a5
798274c0ed
fdec5c88eb

Reviewed By: bigfootjon

fbshipit-source-id: 9c66b9ede84604ad10c839620e313cb2926dd833
2022-08-07 20:35:25 -07:00
Open Source Bot
5a9a2a94c2 Updating submodules
Summary:
GitHub commits:

3fdaf8b346
84926cc1fb
68ac4169a6
925c4466c6
be07089f9a

Reviewed By: bigfootjon

fbshipit-source-id: 2c82d6b5e5a5faff06b1186707a74ff73fad5d6e
2022-08-07 19:52:02 -07:00
Open Source Bot
18d60b9d90 Updating submodules
Summary:
GitHub commits:

f69474c8ea
466885f55c
329c0bfdd1
7b0d2f52b6
970f493d0c
96de894fec

Reviewed By: bigfootjon

fbshipit-source-id: f86051eabd5e29d88c3e5c89e9a4d573a8a18ad4
2022-08-07 19:08:18 -07:00
Open Source Bot
6298f0b993 Updating submodules
Summary:
GitHub commits:

218339288b

Reviewed By: bigfootjon

fbshipit-source-id: 79bc358f835d31a054dd743c9b0f2f0b38d82cf4
2022-08-07 18:24:55 -07:00
Open Source Bot
6d61722b5d Updating submodules
Summary:
GitHub commits:

1eb992943b
cf2147ed79
a14270f857
4f2338b6df

Reviewed By: bigfootjon

fbshipit-source-id: 8bd6096eef4682e17368f47e0d71d920345a4448
2022-08-06 19:28:39 -07:00
Open Source Bot
5aaa9a0766 Updating submodules
Summary:
GitHub commits:

e3a999f37f
d97fdd7083

Reviewed By: bigfootjon

fbshipit-source-id: 8ee20f1206cb27dde5c4dac155a03e7e949a5300
2022-08-06 18:49:03 -07:00
Open Source Bot
4d1800e533 Updating submodules
Summary:
GitHub commits:

0c1b8c0470
9a3918f8e7

Reviewed By: bigfootjon

fbshipit-source-id: 5f8097a70f3fdf5acc8e3db1c1c9f7c1b8b47f15
2022-08-06 13:22:15 -07:00
Open Source Bot
8c0a07ec5a Updating submodules
Summary:
GitHub commits:

b62b2d51ff
08df0125e2
1cd6fa930d
8093320cfd

Reviewed By: bigfootjon

fbshipit-source-id: 012bbdeabc2f4bc6e2157e2083d8fde9a9cddd50
2022-08-06 12:34:57 -07:00
Stiopa Koltsov
0ecde57ca7 rustfmt.toml: group_imports = StdExternalCrate
Summary:
To be landed when reformat changes land.

[Context](https://fb.workplace.com/groups/rust.language/posts/9143028552412345).

Reviewed By: zertosh

Differential Revision: D38485268

fbshipit-source-id: 2a193d675b60f67860fc437b0e2ee4982af8706f
2022-08-06 12:33:42 -07:00
Open Source Bot
b9768dfa8b Updating submodules
Summary:
GitHub commits:

00bd1ac075
257d2c8c3b
35c19102c4
ec019815be
fdfa3404d9

Reviewed By: bigfootjon

fbshipit-source-id: e93b0f874b7ed65841af5ceae2daec8cde26f1f5
2022-08-06 11:51:20 -07:00
Open Source Bot
3f00510883 Updating submodules
Summary:
GitHub commits:

b6bbd1d3c5
63b37c333b
166fe10815
a32db5f3d6
08eabc8289

Reviewed By: bigfootjon

fbshipit-source-id: e01ad33b78b6ffec7768ff1ac87c0d8dee250782
2022-08-06 10:55:36 -07:00
Open Source Bot
4fa35ee526 Updating submodules
Summary:
GitHub commits:

5b0fcbbcea
91305a8d9d

Reviewed By: bigfootjon

fbshipit-source-id: 649f65efe16f6b1aa7cb911275434b7f2a1a02c3
2022-08-06 10:04:08 -07:00
Stiopa Koltsov
500536c011 Apply rustfmt
Reviewed By: zertosh

Differential Revision: D38485039

fbshipit-source-id: d94657aa2a49e5606a91a8b28fbe3fa1711e1ac0
2022-08-06 09:10:10 -07:00
Open Source Bot
bd2ef43ea0 Updating submodules
Summary:
GitHub commits:

eba527023d
821a38955b

Reviewed By: bigfootjon

fbshipit-source-id: ecc01a6a999ba2fc0e03ee6294f7e5e96b90363e
2022-08-06 09:09:31 -07:00
Open Source Bot
21a89aa92d Updating submodules
Summary:
GitHub commits:

f764580228
da55615ff3
47d4d3895d
d027e23cfc

Reviewed By: bigfootjon

fbshipit-source-id: 79e0d34eee882fb4b281a35b25d010562bb0cde2
2022-08-05 23:04:58 -07:00
Open Source Bot
33c74d79d4 Updating submodules
Summary:
GitHub commits:

bc043905a8
a603a807d7
fba851ef9c
939e767282
edac3ee51c
869956edac

Reviewed By: bigfootjon

fbshipit-source-id: 35d0e28d2ab4b415a8535326e71b9c91cb48c80a
2022-08-05 21:43:46 -07:00
Open Source Bot
fbd2e40f86 Updating submodules
Summary:
GitHub commits:

02e0bf8b06
6519dba7be
18985e28a8
2ff0530c9e
9bbd85a5b9
6a80202077
8c26fc5565
6aae031563
28145d65dc

Reviewed By: bigfootjon

fbshipit-source-id: 735b16f495ce594422aee2e0f5ff644cffb4c8f7
2022-08-05 21:06:57 -07:00
Open Source Bot
6ed5a175e8 Updating submodules
Summary:
GitHub commits:

6ad8c87e48
66865c8d11
dcd591ba6b
6bf6734041
ec397d2eeb
b0c586e199
d356bb7a9a
9362701b9e
7de8cdebda
edef5fd2cc
67e6445dba
108f704468

Reviewed By: bigfootjon

fbshipit-source-id: 39cd359893246d9d9854cdcd19c7ffbb407ca9f0
2022-08-05 20:27:16 -07:00
Open Source Bot
a940d93306 Updating submodules
Summary:
GitHub commits:

ddb975b326
b55375b8dd
1fcc66953b
abf235e76f
e26e463555
1c0e7d4aaa

Reviewed By: bigfootjon

fbshipit-source-id: 2978f03d1b8233e5f90c56dd2c693039e37b42c5
2022-08-05 19:46:08 -07:00
Open Source Bot
6494a08951 Updating submodules
Summary:
GitHub commits:

da4a1574b8

Reviewed By: bigfootjon

fbshipit-source-id: f5df5f7e18597dd7d9407d5646be84a148862b37
2022-08-05 19:06:38 -07:00
Genevieve Helsel
e034a6785d use config_dir from configs instead of relying on ~/local/.eden
Reviewed By: shunfu

Differential Revision: D38467825

fbshipit-source-id: 4bb43c57d01b1958c75278c9f0cee5d084f3ed21
2022-08-05 18:54:31 -07:00
Open Source Bot
82743129d4 Updating submodules
Summary:
GitHub commits:

43bef81619
81e810ea6d
3d9d6d34fa
aece7665c6

Reviewed By: bigfootjon

fbshipit-source-id: e33aaecad5f7ee74b1bec4f5279c4f85ada490dc
2022-08-05 18:21:31 -07:00
Open Source Bot
26e3c0d98a Updating submodules
Summary:
GitHub commits:

bc0beb1adc
54011d96cc
bc8bbbbcd8
81e137be7e
ce370d6b95
87eef99316
fab5aa886c
c63097b11e

Reviewed By: bigfootjon

fbshipit-source-id: fbb7c0f77b83135221370231957e1c0c711c1ef6
2022-08-05 17:39:24 -07:00
Open Source Bot
1da63abb61 Updating submodules
Summary:
GitHub commits:

c359b01af2
11e210146f
d77dab0026
c960230cff
98332c676e
8a367cb634
a48020d554
5008b37d7c
34d6e20566

Reviewed By: bigfootjon

fbshipit-source-id: 2a8e408249e34877762b143eba4c4cabbf9bf5bf
2022-08-05 16:56:48 -07:00
Open Source Bot
47e1fb38be Updating submodules
Summary:
GitHub commits:

9154a942e8
941437f71f
2b84f1e6f8
bfe1f2eca3
2259bb9ca6
835312a42a
6b4608840b
85ae1f2ace
648d6477d2
4ebb87c79a
072894ad21
3e02d321cd
0a214efff7
e41cd02156

Reviewed By: bigfootjon

fbshipit-source-id: 79db474f7cc6947dba03c10bbf9f4f88e34e25b6
2022-08-05 16:17:19 -07:00
Open Source Bot
1d81619e9c Updating submodules
Summary:
GitHub commits:

98404c124d
da78058f2c
56bd999fb1
4a18fd1bc5
02089339a1
e481803660
cf25fee67f

Reviewed By: bigfootjon

fbshipit-source-id: afe290e9a06775df4b21385a68b204c40754d6c8
2022-08-05 14:47:06 -07:00
Genevieve Helsel
b475c431dd remove unused import in config.py
Summary: Linter says this isn't used and it doesn't look to be used, so removing it (`fnctl.flock` is used in `eden/fs/cli/overlay.py` but that file already handles the import)

Reviewed By: xavierd

Differential Revision: D38467234

fbshipit-source-id: dcf37b47d987ae27e480f3df2767ac022797cc80
2022-08-05 14:46:05 -07:00