Commit Graph

82628 Commits

Author SHA1 Message Date
Jun Wu
d14e071ada stack: bump modified commit dates for edited commits
Summary:
We bump commit date for other operations like amend, rebase, histedit, etc.
Let's do the same for stack editing.

Reviewed By: evangrayk

Differential Revision: D46188950

fbshipit-source-id: 0e636c13f6bd07945c00f5376991e7dcc0a8793a
2023-05-31 12:45:12 -07:00
Jun Wu
3ccae421be stack: add a date option for CommitStackState.calculateImportStack
Summary: This will be used to bump date for the modified commits.

Reviewed By: evangrayk

Differential Revision: D46188949

fbshipit-source-id: 459b5cebf4929343c9442d2d48d8ddf7342a0776
2023-05-31 12:45:12 -07:00
Jun Wu
8ca23c9a63 stack: hide "Edit stack" for single commit stack
Summary:
It does not make much sense to stack edit a single-commit stack. In the future
if we have split operations then it might make sense to use it. For now let's
just hide the button for a single commit.

Reviewed By: evangrayk

Differential Revision: D46156654

fbshipit-source-id: 553daae9b420ff9bbb500843c36c31977ec04d27
2023-05-31 12:45:12 -07:00
Jun Wu
73dfba1b46 stack: add metrics
Summary:
Track stack editing sessions: duration, how many times each operation gets
used. For reordering, we also distinguish between DnD reorder and button
reorder.

Reviewed By: zzl0

Differential Revision: D46155621

fbshipit-source-id: f4bc679be2be3c5747a9a7968cac66bc76995afe
2023-05-31 12:45:12 -07:00
Jun Wu
3416e89c4a stack: move stack edit action handlers to separate functions
Summary: Minor change to make the next change cleaner.

Reviewed By: evangrayk

Differential Revision: D46155619

fbshipit-source-id: 1b5a1c13f6b876763de67ff9af51ba66b3b5b7a8
2023-05-31 12:45:12 -07:00
Jun Wu
2044f7cbb2 stack: show "Edit stack" without checking experimental features
Summary:
Make "Edit stack" publicly available so we can get feedback.
`experimentalFeatures` will move on to gate other WIP features.

Reviewed By: evangrayk

Differential Revision: D46155618

fbshipit-source-id: 85e3766a08c0faa6d01e02715a515002298c018a
2023-05-31 12:45:12 -07:00
Jun Wu
fe48ca3632 stack: hide "Submit stack" for stack editing is activated
Summary:
When editing the stack, the submit button won't work for the pending commits,
until "Save changes". So let's hide them.

Reviewed By: evangrayk

Differential Revision: D46155620

fbshipit-source-id: f7c5452a0bfa88659843d88e581e597bbc7e3442
2023-05-31 12:45:12 -07:00
Jun Wu
08e366fdd9 shared: update generatorContains to support customize equality test
Summary: This is useful in upcoming changes.

Reviewed By: evangrayk

Differential Revision: D46155622

fbshipit-source-id: 72c956818efacfaa2ae28f4ef068d606e62eb439
2023-05-31 12:45:12 -07:00
Jun Wu
3c6917a2be server: update exportStack to include assumeTracked
Summary:
This can be useful for the client to match exportedStack response with its
exportStack request.

Reviewed By: evangrayk

Differential Revision: D46150702

fbshipit-source-id: 090cf66a848f554f51eaa879e877516d2a74b366
2023-05-31 12:45:12 -07:00
Jun Wu
f3f8fe613a spell: fix some spelling mistakes
Summary: Those were found by a spell checker extension.

Reviewed By: evangrayk

Differential Revision: D46150706

fbshipit-source-id: 7ef1e22b3074b54aa196b2411d0aa69b5423a750
2023-05-31 12:45:12 -07:00
Xavier Deguillard
61b02f8f86 Back out "linearize control flow in EdenServer::mount"
Summary:
We've seen crashes on Windows when the mount is initialized but a later step at
mount time fails. In between these 2 events, if a write to the working copy
happens the ProjectedFS code assumes that the InodeMap is initialized and thus
tries to access the rootInode. This assumption is unfortunately broken by the
call to mountFinished and the code should instead follow the regular unmount
code path to make sure that no pending notifications are inflight.

I suspect NFS and FUSE also would exhibit the same issue.

Reviewed By: kmancini

Differential Revision: D46169999

fbshipit-source-id: ed1eb17dc2f084acb7e2d88c555150b3b8c6662e
2023-05-31 12:15:03 -07:00
Open Source Bot
dd5d2fddd3 Updating submodules
Summary:
GitHub commits:

0fa3a7ff54
515c48dade
b0e7ebebb6
4e13798e3b
3425446232
abab863d58
91f7ed7562

Reviewed By: bigfootjon

fbshipit-source-id: b9dd46ef4af891b5d3fa86c8f1306051cbb35f7d
2023-05-31 07:43:14 -07:00
Open Source Bot
7cd2a9d009 Updating submodules
Summary:
GitHub commits:

6e1ad85f64

Reviewed By: bigfootjon

fbshipit-source-id: 643b2a172d07a23426fffa696149cd5458a4e47b
2023-05-31 06:09:14 -07:00
Pierre Chevalier
2db9d7227d Enable shard manager to load unredacted repos
Summary:
This offers a  new interface for Shard Manager managed repos to be able to load redacted content.

The new API entry point: `open_managed_repos_unredacted` is analogous to `open_repo_unredacted`, but supports a Shard Manager based workflow.

Reviewed By: RajivTS

Differential Revision: D46280863

fbshipit-source-id: e2e4aebcb08d01f3be97d11d6fe8da2822ba6f29
2023-05-31 04:50:12 -07:00
Pierre Chevalier
4c8b8f43b6 non-oss work 61/n
Differential Revision: D46228970

fbshipit-source-id: 81a0b823ef88e27c324f16de412fce0d10bf7633
2023-05-31 04:50:12 -07:00
Open Source Bot
2ff7a9ee3e Updating submodules
Summary:
GitHub commits:

5bf2427934

Reviewed By: bigfootjon

fbshipit-source-id: 96091aa7f1d194085224ed6b768b0e27fc97f858
2023-05-31 02:51:44 -07:00
Open Source Bot
fc4b46038d Updating submodules
Summary:
GitHub commits:

2671e037ef
c5b1cfdc28
17a4ea1865

Reviewed By: bigfootjon

fbshipit-source-id: 1f6b9bc79f075c4757a0c813638c8bc7620b91c2
2023-05-31 00:06:41 -07:00
Barys Skarabahaty
cecd3a9582 Adding a possibility to configure the blake3 key
Summary: Adding a way to configure the blake3 key for blake3 hashing

Reviewed By: chadaustin

Differential Revision: D44499469

fbshipit-source-id: 344edd91cfc867c8a49d0db9369dfe2132e86c77
2023-05-30 23:10:10 -07:00
Open Source Bot
83b3a691c2 Updating submodules
Summary:
GitHub commits:

c1b568c5a7
56ca9e3106
de7ed7fbbe

Reviewed By: bigfootjon

fbshipit-source-id: c5eb98b38738f7ed033784032f5553ab6e476ce0
2023-05-30 20:59:24 -07:00
Zhaolong Zhu
3bc3732b8d copytrace: add metrics for content similarity fallback result
Summary: I am planning to enable `copytrace.fallback-to-content-similarity=True` for hg repos, and will use this metric to monitor how useful the content similarity fallback is

Reviewed By: muirdm

Differential Revision: D46163311

fbshipit-source-id: d21b0288965f8ec4da7c6c80e37d1b557b357ea6
2023-05-30 20:32:55 -07:00
Zhaolong Zhu
19d7f8214c copytrace: make dagcopytrace instance a singleton
Summary: Our cache is in the dagcopytrace instance, so let's make it a singleton.

Reviewed By: quark-zju

Differential Revision: D46105882

fbshipit-source-id: 0984015e7b052482b27f950fc05563c432aa23b1
2023-05-30 20:32:55 -07:00
Zhaolong Zhu
d9171bcf51 copytrace: add batch move candidates cache for rename finders
Summary: Optimization for directory move caused renames.

Reviewed By: muirdm

Differential Revision: D46105883

fbshipit-source-id: 69aee540b14cde9112f6327b6c782714109cac04
2023-05-30 20:32:55 -07:00
Zhaolong Zhu
875c353d48 copytrace: add test for batch move
Summary: Add tests for dir move

Reviewed By: muirdm

Differential Revision: D46149478

fbshipit-source-id: 28d98a33ac2f1c47e407f744ecfa496e4376e4bd
2023-05-30 20:32:55 -07:00
Zhaolong Zhu
96f993dcae copytrace: add batch move detection
Summary: this function will be used in the following diff

Reviewed By: quark-zju

Differential Revision: D46105885

fbshipit-source-id: 9d02fb62a44b1e5bd18eba5236522e297fae0f64
2023-05-30 20:32:55 -07:00
Open Source Bot
8a96dbccf9 Updating submodules
Summary:
GitHub commits:

734b65a507
04a31a05c8
8848ec92dd
1b09b649b7
9ae998dfaa
d20754526b

Reviewed By: bigfootjon

fbshipit-source-id: 05c6f919d4e59d365b2e9c2b40fb845639fe39ca
2023-05-30 18:26:10 -07:00
Open Source Bot
d9f7ca866d Updating submodules
Summary:
GitHub commits:

58afd250c8
e100114d15
a3d5bae122
1abcdd0eab
f75793bc7e
7a02d6e1ec

Reviewed By: bigfootjon

fbshipit-source-id: 7aeb56f2cd4a8d95dc3615993d94d536ea9025d1
2023-05-30 13:38:21 -07:00
Rajiv Sharma
af2314d831 Using BonsaiTagMapping in GitImport and RemoteGitImport
Summary:
This diff modifies the behavior of `gitimport` and `remote-gitimport` when importing `annotated-tags`. In addition to:
- storing the raw tag
- converting the tag to a bookmark
- storing the metadata of the tag as changeset
this diff maintains a mapping between the tag-name and the changeset representing the metadata of the tag. This mapping would be useful to answer queries about the tag metadata when queried through Git and also enable going back to Git from Mononoke without losing data.

Differential Revision: D46067809

fbshipit-source-id: e2463160cdf647b50fa4ecfe4674d079016b4adc
2023-05-30 12:20:40 -07:00
Open Source Bot
777c1f54f4 Updating submodules
Summary:
GitHub commits:

e4eb857d44
19f353fe9e
64b712d749
cfeff1a114
c565caeeef
860a24ab0b
60a37065af

Reviewed By: bigfootjon

fbshipit-source-id: b6f59fe4eb410ab209272fc167af7248eed3a173
2023-05-30 12:11:29 -07:00
Youssef Ibrahim
79fd5fd16a mononoke_api: implement an alternative to ChangesetPathHistoryContext::history using the new commit graph
Summary: Implement an alternative to ChangesetPathHistory::history using the new commit graph. This is almost identical to the skiplist implementation except that an (incorrect) optimization was removed that was trying to minimize the number of is_ancestor queries which should no longer be needed as they are a lot faster with the new commit graph.

Differential Revision: D46109911

fbshipit-source-id: 3e8f0c36a48084116673dda3741de87e0741f1a2
2023-05-30 11:47:19 -07:00
Youssef Ibrahim
81063c4c9d mononoke_api: implement an alternative to ChangesetContext::history using the new commit graph
Summary: Implement an alternative to ChangesetContext::history using the new commit graph by using AncestorsStreamBuilder. Also made the tests not depend on the exact output history order but instead accept any topological order.

Differential Revision: D46109910

fbshipit-source-id: 31f3e219e9addf04b49fc500ad245d541f110887
2023-05-30 11:47:19 -07:00
Youssef Ibrahim
899a3aed12 commit_graph: implement AncestorsStreamBuilder
Summary:
Factors out the logic of creating an ancestors stream to a builder to allow for more customizability (required for ChangesetContext::history) and reduce code duplication.
Additionally this optimizes range_stream to only traverse changesets that are descendants of start_id. Ancestry checks are kept to a minimum (worst case O(merges)) by only checking on parents of changesets that have a skip tree parent with generation lower than the generation of start_id.

Reviewed By: liubov-dmitrieva

Differential Revision: D46276429

fbshipit-source-id: 65c4f2892c92baaab0fef4f5041f06095ec49e05
2023-05-30 11:47:19 -07:00
Open Source Bot
545e593b61 Updating submodules
Summary:
GitHub commits:

9025a0e164
a7f900fc72
aaa04ca739
a1b10767b0
3ae3cf6715
b81299d7c0

Reviewed By: bigfootjon

fbshipit-source-id: e7fcd747ba120e5e8ff2f54e2b389cd08efce4d7
2023-05-30 09:05:17 -07:00
generatedunixname226714639793621
600c351dde fbcode/fboss/
Reviewed By: vitaut

Differential Revision: D46070319

fbshipit-source-id: bc6092c8bde6fb255b0c6f4e45f8e418c9b742a9
2023-05-30 08:13:14 -07:00
Open Source Bot
737e99d6fe Updating submodules
Summary:
GitHub commits:

53fe06193c

Reviewed By: bigfootjon

fbshipit-source-id: 0911246e406c405256cc55f6d958a240009459e1
2023-05-30 07:58:23 -07:00
Egor Tkachenko
7ee654f3e8 Add facet to interact with deletion log db
Summary: Facet and related boilerplate to construct it

Differential Revision: D46153855

fbshipit-source-id: 480d69deb4ff714541970e63df775a500e2cbb33
2023-05-30 02:01:31 -07:00
Genevieve (Genna) Helsel
d3ae451c74 allow using SqliteOverlay on non-Windows
Summary: allow using `SqliteOverlay` on non-Windows, since  OverlayChecker has now been updated to work with it.

Reviewed By: chadaustin

Differential Revision: D44105360

fbshipit-source-id: 5f78e6c9b5323faeee394da4a51d7e84f8d44a2f
2023-05-29 22:38:14 -07:00
Open Source Bot
577f306a36 Updating submodules
Summary:
GitHub commits:

5ed65b453a
f72d6c6859

Reviewed By: bigfootjon

fbshipit-source-id: d82a4c8f7c104aef86b8026860fdad5d59d89c3c
2023-05-29 21:44:28 -07:00
Open Source Bot
ed2f762611 Updating submodules
Summary:
GitHub commits:

9b9ca0dc6e
972348726c
a08be6edc2
aa795a44a7
740635be0c
576c2f49be

Reviewed By: bigfootjon

fbshipit-source-id: eaf85e98ee0342247d9074e34a1dfdb4a494ee0c
2023-05-29 12:15:46 -07:00
Open Source Bot
25e74643a7 Updating submodules
Summary:
GitHub commits:

86ae8b65bd
2c1c6207a5

Reviewed By: jurajh-fb

fbshipit-source-id: 84de321078740a7cc6b40900dd11931ce6415769
2023-05-28 13:52:59 -07:00
Open Source Bot
aad76b0632 Updating submodules
Summary:
GitHub commits:

3215beb129
fbbe201dd9

Reviewed By: jurajh-fb

fbshipit-source-id: 5194a57777dd535da003c79c565820cdc31e518e
2023-05-27 13:53:21 -07:00
Open Source Bot
ef877f4d03 Updating submodules
Summary:
GitHub commits:

1e6b5c92ec
459fb5a597
787c3a1f8c

Reviewed By: jurajh-fb

fbshipit-source-id: d415a81d15bbe3886f885f74d8d45b86c675a724
2023-05-26 14:25:49 -07:00
Open Source Bot
17adbc5cf3 Updating submodules
Summary:
GitHub commits:

1c16134b37
527d9ca112

Reviewed By: jurajh-fb

fbshipit-source-id: 26252658cfe71b6b9691a3441561eaa2032b3891
2023-05-26 13:33:40 -07:00
Open Source Bot
ea1bdaa246 Updating submodules
Summary:
GitHub commits:

f681898c11
d33bc9c4b6
1bff704a7f
23f4e9ad63
15b24eaac0

Reviewed By: jurajh-fb

fbshipit-source-id: 2bc30ce3c3c0513809c2c72daba33683e203a505
2023-05-26 11:34:11 -07:00
Evan Krause
28a830aaf6 Don't include light theme variables in vscode
Summary:
vscode/webview-ui-toolkit includes dark theme variable values, but not light theme variable values. This means for the web ISL, we need to include the light theme values our selves (e.g. `--background: #fff`).

This is wrong when rendered inside vscode, since vscode provides the theme variables itself. It's more than redundant, because it means we don't respect some light theme variables.

We can fix this by extracting the light theme variable definitions and only including them in the `index.tsx` used to render the web ISL, and not include them in the vscode `islWebviewEntry.tsx`.

Reviewed By: zzl0

Differential Revision: D46227804

fbshipit-source-id: 8a4424e0f764f14bd6bcad4eccd0e0ffae29b991
2023-05-26 10:55:04 -07:00
Xavier Deguillard
71eebd2356 store: fix a nullptr derefence in LocalStoreCachedBackingStore
Summary:
In the rare case where fetching both the BlobMetadata and the Blob failed, the
LocalStoreCachedBackingStore would still try to dereference the nullptr Blob,
leading to a crash.

Reviewed By: chadaustin

Differential Revision: D46211469

fbshipit-source-id: f98dd215dbda432507f3823439d354d3d662dc6f
2023-05-26 09:16:16 -07:00
Open Source Bot
682811bba5 Updating submodules
Summary:
GitHub commits:

619eeff73e

Reviewed By: jurajh-fb

fbshipit-source-id: ce19c6be6671de951cefa3c156ea15c4ab537969
2023-05-26 09:05:50 -07:00
Youssef Ibrahim
3febd2a8eb commit_graph: add a newadmin command for finding children of a commit
Summary: We didn't have a way to do this before so let's add it.

Reviewed By: mitrandir77

Differential Revision: D46190481

fbshipit-source-id: 84544f0226ef3a4ef4d8ac9b4bf66551e4671793
2023-05-26 04:38:42 -07:00
Jan Mazur
79a82015aa remove dependency on MononokeApp
Summary: It's not ideal that we pull mononoke_app and even instantiate MononokeApp here. This is an attempt to decouple Mononoke from Metagit.

Reviewed By: mitrandir77

Differential Revision: D45862434

fbshipit-source-id: 6eab3577743810461f22535d89cf9a00dc1cbb65
2023-05-26 04:22:23 -07:00
Open Source Bot
cfec7600c0 Updating submodules
Summary:
GitHub commits:

caad46dc8a
971d5a78e6
702c2bc372

Reviewed By: jurajh-fb

fbshipit-source-id: 6c4daeecd4d26897ca41246bfacfeec8994be33b
2023-05-26 02:38:26 -07:00
Youssef Ibrahim
4634db2c84 commit_graph: asyncify closures in _with methods
Summary: Most of the useful ways to use these methods requires providing an async closure so let's asyncify them.

Reviewed By: RajivTS

Differential Revision: D45607981

fbshipit-source-id: ee7b471cc5d60a793a79928f6c15c48c0da1d08e
2023-05-26 02:12:44 -07:00