Commit Graph

79564 Commits

Author SHA1 Message Date
generatedunixname89002005325677
6e51f16156 Daily arc lint --take RUSTFMT
Reviewed By: muirdm

Differential Revision: D42063430

fbshipit-source-id: b8d8c3c376385e1539ab4640121f71ae3f5755f7
2022-12-15 07:22:15 -08:00
generatedunixname89002005307016
6f4ce82bee Add annotations to eden/scm/edenscm/ext/lz4revlog.py
Reviewed By: yancouto

Differential Revision: D41996356

fbshipit-source-id: bcecf60bc784e81159483e42e7237e65df8366f1
2022-12-15 07:13:32 -08:00
generatedunixname89002005307016
6bd0b690ad Add annotations to eden/scm/edenscm/eden_dirstate_map.py
Reviewed By: yancouto

Differential Revision: D42068065

fbshipit-source-id: 197270808a20a0043fdef5f3b206265443048fe3
2022-12-15 07:12:38 -08:00
generatedunixname89002005307016
fba6e0daf7 Add annotations to eden/scm/edenscm/ext/gitrevset.py
Reviewed By: yancouto

Differential Revision: D42032097

fbshipit-source-id: a3c5d8227acb3080325ddcccc02aab9dc5bdb1f1
2022-12-15 07:10:45 -08:00
generatedunixname89002005307016
b031a64e72 Add annotations to eden/scm/edenscm/hintutil.py
Reviewed By: yancouto

Differential Revision: D41942602

fbshipit-source-id: 5e73bc406ab66460c16ac45025184dbfbc54c600
2022-12-15 07:10:45 -08:00
Open Source Bot
a9e7e64e26 Updating submodules
Summary:
GitHub commits:

443231ee6a
8127e86f0e

Reviewed By: yns88

fbshipit-source-id: 13777e0b41408b85026df0e70dac8bc60c1bec4b
2022-12-14 23:01:56 -08:00
Michael Bolin
56b5e3e180 remove default subcommand for sl pr but add s as alias for submit
Summary:
As we are going to add more flags for `sl pr submit`, it no longer
works well to use `submit` as the default command. Though we
add `s` as an alias for `submit` so it does not require much typing.

Reviewed By: zzl0

Differential Revision: D42047829

fbshipit-source-id: 782339a44ec5b548b6fc5e61a32f8fb05c0c8fe4
2022-12-14 22:49:34 -08:00
Open Source Bot
c88bd03422 Updating submodules
Summary:
GitHub commits:

ad7e2576be

Reviewed By: yns88

fbshipit-source-id: 628ccd0aa81639bb762a94bf88baf34ceed21d69
2022-12-14 20:48:50 -08:00
Open Source Bot
1c15f73a80 Updating submodules
Summary:
GitHub commits:

06cb535743
0f3722f86b
8cceddb46e
b0bb1cbae1

Reviewed By: yns88

fbshipit-source-id: 07ad19bd31108e9a359db166e969e53d5b9c5b6b
2022-12-14 16:17:42 -08:00
Jun Wu
c05420d362 config: make configmodel::Config require Send + Sync
Summary: This makes it easier to use for trait objects.

Reviewed By: muirdm

Differential Revision: D42024292

fbshipit-source-id: 490f817c368d472f4741830d2d7269ee38f9ada2
2022-12-14 14:53:51 -08:00
Jun Wu
32ca0ddd21 config: add ConfigSet::named
Summary: Add a way to specify a name to `ConfigSet`.

Reviewed By: muirdm

Differential Revision: D42024078

fbshipit-source-id: bb530e8fa6d2bf3ac7f73ca0ff076e60ac2887ea
2022-12-14 14:53:51 -08:00
Jun Wu
ce428d0917 config: add UnionConfig::push
Summary:
This makes it possible to modify a UnionConfig on the fly without recreating it
from scratch.

Reviewed By: muirdm

Differential Revision: D42024079

fbshipit-source-id: 7c583cacc7a4602b29ec1ad1a4cef910ffc8a357
2022-12-14 14:53:51 -08:00
Jun Wu
086800fca1 config: preserve %unset in ConfigSet::to_string
Summary: Preserve `%unset` in String -> ConfigSet -> String round-trip.

Reviewed By: muirdm

Differential Revision: D42022087

fbshipit-source-id: 6803b4a1c988d228d0db2e4e73b7f2ffccf2ccf6
2022-12-14 14:53:51 -08:00
Jun Wu
e382aa9d77 config: impl Default for UnionConfig
Summary: This will be used by the next change.

Reviewed By: muirdm

Differential Revision: D42022088

fbshipit-source-id: 0df90da6a0a515e1a0e0030d94aa86ea6950b9b5
2022-12-14 14:53:51 -08:00
Jun Wu
853cd5a192 config: rename parser to loader
Summary:
The name "parser" no longer accurately reflects what the code does. Rename it
to "loader" to clarify.

Reviewed By: muirdm

Differential Revision: D42018937

fbshipit-source-id: 22a115b2277e78e48c4ac75d75c97d0ec0ff1a37
2022-12-14 14:53:51 -08:00
Jun Wu
3bf3d98f0d config: move ConfigSet to a standalone crate
Summary:
The configparser became too bloat with dynamicconfig logic.

Move its core structure `ConfigSet` to a standalone crate so code using
`ConfigSet` have a lightweight alternative, and `ConfigSet` logic can
be developed independently without coupling with dynamicconfig.

Reviewed By: muirdm

Differential Revision: D42018678

fbshipit-source-id: 45d1e9458fdaa65b0242bad59dfd76c46dd516d1
2022-12-14 14:53:51 -08:00
Jun Wu
b8b85e53da config: remove parser/CMakeLists.txt
Summary: It is no longer referred in other CMakeLists files.

Reviewed By: muirdm

Differential Revision: D42021268

fbshipit-source-id: d172a8ecf82c4764fc4477d0391015a3ec89961e
2022-12-14 14:53:51 -08:00
Jun Wu
b90a24fedc configparser: move set_overrides to hg.rs
Summary:
It is only used by hg.rs. Move it to decouple the core ConfigSet features from
hg's business logic (`--config` flags).

Reviewed By: muirdm

Differential Revision: D42018679

fbshipit-source-id: a33b9adf0217288ec7bea997a6e3b81fb35cc123
2022-12-14 14:53:51 -08:00
Jun Wu
0ce132f975 config: change Config::layers definition
Summary:
Previously it requires the sub-configs to match their parent config.
That actually seems inflexible. Relax the requirement so it can be
used in more places.

Reviewed By: muirdm

Differential Revision: D42018680

fbshipit-source-id: bf2be4cfe23175ce32738872a16efe906fbc5d29
2022-12-14 14:53:51 -08:00
Jun Wu
3842c4accc pyrevisionstore: migrate off ConfigSet
Summary: Use abstraction to be more flexible.

Reviewed By: muirdm

Differential Revision: D42011185

fbshipit-source-id: 419edb17376a6939a8eac98653b6cac20464544f
2022-12-14 14:53:51 -08:00
Jun Wu
f7a2a78c8c auth: migrate off ConfigSet
Summary: Use lighter weight `static_config!` for testing.

Reviewed By: muirdm

Differential Revision: D42011187

fbshipit-source-id: 3aadc94c5e06889d5de6a7435f90bb775074b393
2022-12-14 14:53:51 -08:00
Jun Wu
e5777d8a76 workingcopy: use abstraction for config reading
Summary:
This allows `workingcopy` to work with other config implementations like
`UnionConfig` not just `ConfigSet`.

Reviewed By: muirdm

Differential Revision: D42011186

fbshipit-source-id: a721922511b900a977e9e629088197f0742ea21c
2022-12-14 14:53:51 -08:00
Zhaolong Zhu
c503c7e3d7 github: move GraphQL queries into consts module
Summary: move GraphQL queries into consts module, so they can be reused by tests.

Reviewed By: bolinfest

Differential Revision: D42035497

fbshipit-source-id: 0f43e6b43a43c15b61f696858abdd5ae230a2c45
2022-12-14 14:39:39 -08:00
Michael Cuevas
9a209b751f combine exception strings
Summary: this formatting choice was a remnant of a codemod

Reviewed By: chadaustin

Differential Revision: D41755813

fbshipit-source-id: aee8dcd0231f807d205530478cb74bb36785fef5
2022-12-14 14:03:35 -08:00
Michael Cuevas
9531fa3f49 make redirect integration tests pass on macOS
Summary: on macOS, a redirection target is the absolute repo_path of the redirection. Therefore, we need to modify the expected output for macOS integration tests.

Reviewed By: fanzeyi

Differential Revision: D41691840

fbshipit-source-id: 6d6975c9e1f74b5ef56a95b2d0a49f76704ebde7
2022-12-14 14:03:35 -08:00
Michael Cuevas
2e5e017a9d make info integration tests pass on macOS
Summary: on macOS, we default to NFS instead of FUSE, therefore use_nfs() should always return True on macOS

Reviewed By: chadaustin

Differential Revision: D41707744

fbshipit-source-id: 0b987682fe3268a216770b8b0e0b2ee9a99c11e0
2022-12-14 14:03:35 -08:00
Michael Cuevas
b941e3a476 enable integration tests on macOS
Summary: Enable integration tests and disable all tests that are failing. We will slowly resolve all of these test failures over time.

Reviewed By: xavierd

Differential Revision: D41691841

fbshipit-source-id: b36eadee2cfdc5cc367bc5a3b4d224ba4a6968a5
2022-12-14 14:03:35 -08:00
Open Source Bot
5e9c233868 Updating submodules
Summary:
GitHub commits:

3dff3135e8
2d8cd1bddb
176bca929f

Reviewed By: yns88

fbshipit-source-id: ff367b3cee2dbec6464abc3ac7616e9d35970335
2022-12-14 14:02:03 -08:00
Open Source Bot
4bd31b525d Updating submodules
Summary:
GitHub commits:

519f664f3c
24dfbcf7ef
b938f0068e
e36ccff73f

Reviewed By: yns88

fbshipit-source-id: 5070fe534c7e942d2b5e2f46632a5a2a182f9c91
2022-12-14 11:05:51 -08:00
Open Source Bot
c35eec4158 Updating submodules
Summary:
GitHub commits:

33d4d035d9
caf015b47c
0121f95fab
90d64a7db5
097636fb70
b728038247
83fc2124f5
c11c68268a
c3bdb45817
38505ff7f8

Reviewed By: yns88

fbshipit-source-id: c6331686522fc4d7937b348a9d9dd40637f3fb0e
2022-12-14 10:14:15 -08:00
Open Source Bot
ef2a997f5e Updating submodules
Summary:
GitHub commits:

c43634f32c
f8d9085d79
6e421eddbb

Reviewed By: yns88

fbshipit-source-id: 017fee468f34ed44cfcca20d28d9ea4162c136dd
2022-12-14 09:05:10 -08:00
Mark Shroyer
a9322aeae7 Restore metadata size mismatch logging
Summary:
This re=implements the backed-out D41393677 (6384a0f39a) with some changes:

  - Only log if the size metadata is _less than_ the size of the file contents
    we're returning.  This way we avoid erroneously logging partial reads, as
    happened in T139036919.

  - Only log once per Nfsd3ServerProcessor instance.

Reviewed By: chadaustin

Differential Revision: D41751040

fbshipit-source-id: 2503ecb488b0600bdeabbb11e532e4590edbd280
2022-12-14 03:18:23 -08:00
Open Source Bot
54368fe005 Updating submodules
Summary:
GitHub commits:

35db9f330d
7a3c70741d

Reviewed By: yns88

fbshipit-source-id: b5ece34a0360487d9e580dec8d868e29377c20f6
2022-12-14 00:29:14 -08:00
Open Source Bot
9b0acf1262 Updating submodules
Summary:
GitHub commits:

937d00c39b
e0bb6f1526
0c5d06fc78
b06bf84f4d

Reviewed By: yns88

fbshipit-source-id: 8bb9476d603174fde43cfa7b79c6d72ca61a6f10
2022-12-13 15:00:11 -08:00
Andres Suarez
7496bd072c update various deps
Reviewed By: davidbarsky

Differential Revision: D42005719

fbshipit-source-id: 2b587ec2afda5d2f21d5ca5ff409262426489241
2022-12-13 13:37:15 -08:00
Open Source Bot
f8cc346697 Updating submodules
Summary:
GitHub commits:

31871f55ff
1b6e12a97f
1826fe20cf

Reviewed By: yns88

fbshipit-source-id: 146c00b7b13c238af885af7339089d065caf5fd7
2022-12-13 13:24:31 -08:00
Zhaolong Zhu
27b08f102a tests: add sl shell function
Summary: define `sl` as a shell function to `HGIDENTITY=sl hg`

Reviewed By: quark-zju

Differential Revision: D41965294

fbshipit-source-id: eb3eebb0dc184a3aae4bcb6ab541a42f9e8b82f8
2022-12-13 13:03:36 -08:00
Saul Gutierrez
11583aacb6 add Homebrew to install instuctions
Summary: Adds installation instructions for installing from Homebrew-core on macOS so that users don't have to manually download our bottle. It also adds one additional installation method for non-Ubuntu Linux users.

Reviewed By: bolinfest

Differential Revision: D42008426

fbshipit-source-id: 76757f43739bca3133e3265d5bbe6175edbc9f11
2022-12-13 12:12:03 -08:00
Saul Gutierrez
388343cc8b further improve compatibility with Homebrew
Summary:
This diff changes our versioning scheme from `MAJOR.MINOR-%Y%m%d-%H%M%S-rHASH` to `MAJOR.MINOR-%Y%m%d-%H%M%S-hHASH`

At the moment we cannot send another PR to Homebrew-core since our lastest release (`0.1.20221212-142634-r7ae28228`) gets detected [as an Erlang version](9c88c39bae/Library/Homebrew/version.rb (L411)) instead of a [hyphenated version](9c88c39bae/Library/Homebrew/version.rb (L427)). This was not an issue in the past since the hashes of our previous releases didn't happen to be of the form (`[Rr]\d+[AaBb]\d*(?:-\d+)?)`).

Reviewed By: bolinfest

Differential Revision: D42006425

fbshipit-source-id: 8dd4c52e1f49b79763bcc5863f7578a0f36dda73
2022-12-13 11:54:51 -08:00
Clara Rull
b3d61cfabf Fix pyre wrongly inferred type
Summary: In D34217873 (bb5656edfc) pyre wrongly assumed 'root' was int, while it is actually str. This diff solves that and removes the related coments

Differential Revision: D42003278

fbshipit-source-id: 91088303b2a671e20fe83aa156b97e97f9cc81d7
2022-12-13 11:16:32 -08:00
Muir Manders
3da7d0b7f2 goto: log "update_distance" on edenfs
Summary: Move the update_distance log up so it fires for the Edenfs case as well.

Reviewed By: quark-zju

Differential Revision: D41750022

fbshipit-source-id: 48df0a58c009bc5bb87d76495d942a53f3089d1a
2022-12-13 10:22:25 -08:00
Open Source Bot
5fcb68de1e Updating submodules
Summary:
GitHub commits:

af08b90aa1
f4805c4b3a

Reviewed By: yns88

fbshipit-source-id: ce9ba2cc3b27a2ce7f87c8b157cd5d32bb3962ee
2022-12-13 08:09:20 -08:00
Open Source Bot
96f4c4a376 Updating submodules
Summary:
GitHub commits:

38285998a3

Reviewed By: yns88

fbshipit-source-id: a2fe30df2c88df2337feb4038ee9cf01c72988cd
2022-12-13 07:25:40 -08:00
Michael Bolin
26526efb78 minor grammatical fixes in VS Code extension docs (#323)
Summary:
Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/sapling/pull/323).
* __->__ https://github.com/facebook/sapling/issues/323

minor grammatical fixes in VS Code extension docs

Pull Request resolved: https://github.com/facebook/sapling/pull/323

Reviewed By: sggutier

Differential Revision: D41981831

Pulled By: bolinfest

fbshipit-source-id: 7b94a6f3f741b17ccafea938b8b388e8d54057c8
2022-12-13 07:15:56 -08:00
Yan Soares Couto
89e558bf14 Change too many files error text
Summary: Point to the wiki, which is clearer and more similar to the error for large files.

Reviewed By: markbt

Differential Revision: D41840992

fbshipit-source-id: 292f30c0e92cf8627f0646ed503d0e0ba30eae82
2022-12-13 06:03:40 -08:00
Yan Soares Couto
9f03631b62 admin: Add fetch many command
Summary: This command allows fetching multiple keys at once. It can be used to tell how many exist, but is most useful to allow repairing/scrubbing many keys at once.

Differential Revision: D41660456

fbshipit-source-id: afcaf789479dc0050817d15c1f54299851cb81db
2022-12-13 04:50:17 -08:00
Yan Soares Couto
34e8c3f199 Clean last reference to bookmarks_update_log_lock from fbcode
Summary: This stopped being used on D39698723 (3338746679), but we forgot to remove the code that creates it on integration tests.

Differential Revision: D41874472

fbshipit-source-id: bbb2eccdd53103999523b3e5be2fd9ff7ba85e83
2022-12-13 03:11:15 -08:00
Open Source Bot
13dafa642f Updating submodules
Summary:
GitHub commits:

46222db4c9

Reviewed By: yns88

fbshipit-source-id: 182bf059159da66d08ac2b7f5c011de2bdbb03ad
2022-12-13 00:48:41 -08:00
Open Source Bot
c640df384e Updating submodules
Summary:
GitHub commits:

cd9f501ab0
e2802d7dd7
71335ddade

Reviewed By: yns88

fbshipit-source-id: 057d191e0256eddca0a4d0ff9e9933e9867e3f7e
2022-12-12 18:47:30 -08:00
Eddie Shen
da2a0530fc Migrate ratelimit_meter to governor
Summary:
`ratelimit_meter` is a deprecated crate. It's owner/maintainer has since forked their own library into `governor` which is actively being worked on and offers a similar API. They have also provided a migration guide.

While functional, `ratelimit_meter` is the only crate vendoring in `smallvec@0.6.13`, which is affected by [`RUSTSEC-2021-0003` - 2021-01-08: Buffer overflow in `SmallVec::insert_many`](https://rustsec.org/advisories/RUSTSEC-2021-0003.html). Since upgrading ratelimit_meter is not an option, the only path forward is to migrate away from it.

Notably, `governer`'s `RateLimiter` also offers an async api surface, which removes the need for portions of `async_limiter`. It also offers one algorithm, a slightly modified GCRA, unlike `ratelimit_meter` which offered two, but according to the author, both algorithms ultimately did the same thing.

Please see `governor`'s migration [guide](https://docs.rs/governor/latest/governor/_guide/index.html) and `ratelimit_meter`'s [github page](https://github.com/antifuchs/ratelimit_meter) for more information.

Reviewed By: chriskonstad

Differential Revision: D41690189

fbshipit-source-id: 0b686f95a9a0346b2b0426f660bcc41e8c6657d3
2022-12-12 18:42:35 -08:00