Commit Graph

68959 Commits

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

d0132e2683
5200329ab2
5ee8d83271
0d48ab1975
20e582fc25
32effec6d3
5cc85c4b1a
ef1c54f88c
06e0a9069a
1993f75e48

Reviewed By: wittgenst

fbshipit-source-id: 524edaf1ce7b7d63b9bbaf0f9881de2e2909a8f4
2021-10-28 23:46:47 -07:00
svcscm svcscm
9b98068f76 Updating submodules
Summary:
GitHub commits:

dc1715877a

Reviewed By: wittgenst

fbshipit-source-id: 255e1d74be6f66b4a789ffc9425edc2c2a61bdcc
2021-10-28 23:27:33 -07:00
svcscm svcscm
788c6b2239 Updating submodules
Summary:
GitHub commits:

d969b0e549
cc3636b331
ed74c864b8
89694fdf96

Reviewed By: wittgenst

fbshipit-source-id: 0516f57644e75e3732d6ad3e845cfbfe6cacb65c
2021-10-28 22:02:06 -07:00
svcscm svcscm
e35f73cb1f Updating submodules
Summary:
GitHub commits:

608e1fb967
4503dcb8c3
642958e5f7
48ab41b11f
b09eeeceb2

Reviewed By: wittgenst

fbshipit-source-id: 7d52b2e7f6ec85108b254e1270ca79357b775382
2021-10-28 21:29:15 -07:00
svcscm svcscm
b0d838da82 Updating submodules
Summary:
GitHub commits:

f6372191eb
7e1730c76b
3ce8dff8dd
3d1c7e4417
6c93856277
4377de6420
38027005d4

Reviewed By: wittgenst

fbshipit-source-id: 18d39ce3cf05dde1da631b5d9a58e160c18727ab
2021-10-28 20:37:26 -07:00
svcscm svcscm
9db80c54f0 Updating submodules
Summary:
GitHub commits:

c9231e3dbd
85a5331804
da73a2fe45
20ed3f90f9
cff5b5eb7c
35def6e079
3db9c9bb43
690cd797d0
5d94e3ebd2
ebe72c71f6

Reviewed By: wittgenst

fbshipit-source-id: 95e50e583bc24b0fa3b6f51057737bf8a72b6b2b
2021-10-28 20:05:28 -07:00
svcscm svcscm
a3caa2cf1c Updating submodules
Summary:
GitHub commits:

1657b8f386
5919130c45
55c1805931
69e72892a6
4a6fb38ae9
99ec415c42
2dc284b205
ebe60e60b2
56ed0f708a
e1ad922b39
18ca796fea

Reviewed By: wittgenst

fbshipit-source-id: cfa583e3614fb1578ead8a370cf4f51bd45368e0
2021-10-28 19:32:51 -07:00
svcscm svcscm
17ba88cc04 Updating submodules
Summary:
GitHub commits:

1fe3ba47b2
ea73eaa1b2
32429972b6
5f3716153c
2dd499f110
7492a8d5b6
092f09fd6f
9f8627c694
2f70bbdf02
dcb5c9d8d6
12e3f4f4e4
b371fc6202
309cc7d09c

Reviewed By: wittgenst

fbshipit-source-id: aaa6011d297c39473b6c11b7b9fa4790a3f4e9c7
2021-10-28 18:52:19 -07:00
svcscm svcscm
8c2f46f280 Updating submodules
Summary:
GitHub commits:

9deb7f5015
aa59905efa
140db432f8
b742725af6
8f57369acb
3a33bb9b41
ebb34f49bb
625917d31e
bcbdd63d38
7463b1ef5f
3628c707e5
c56a1fc6b1
2e15f569a8

Reviewed By: wittgenst

fbshipit-source-id: b9e6569b6844b0570f0448e1fd9a31a8d0584642
2021-10-28 17:42:19 -07:00
svcscm svcscm
83bb3c0e8b Updating submodules
Summary:
GitHub commits:

530d3b1235
246e9400ba
f3af35c128
fefc6887bf
75b5d8e298
f6f42f9430
b4b606679a
e2b6b3d9ac
bc021e7f33
9b402c4f83
e6879c3ab6
b3d511d90a

Reviewed By: wittgenst

fbshipit-source-id: f4cdb4d084e4b37d2e0a46ecdcb1be89aafb42b6
2021-10-28 15:30:01 -07:00
svcscm svcscm
e1c8879cb5 Updating submodules
Summary:
GitHub commits:

09564a8235
8634f22d9e
1db2a22714
3a7c07a89a
7a5fee83bd
fcec22c4a9
1d1cdf53ba
98122514e7
bc14ffd171
c57e4e421a
9ab3536ada
46412f146c
3ac36d4a7b
09d8c1417d
13d441474f
27dd8f22f5
09d728e6dc

Reviewed By: wittgenst

fbshipit-source-id: 72bcde477681cc68b6822dd85eb1008007303f0e
2021-10-28 14:35:52 -07:00
Yan Soares Couto
e920acdb11 filemerge: deal with absolute paths on rename prompt
Summary:
If an absolute path is provided, try to convert it to repo path. This provides
a bit convenience for end users.

Reviewed By: quark-zju

Differential Revision: D31960283

fbshipit-source-id: 7d252e6e49471f15ab9d693ca3e7d339a0f68cb0
2021-10-28 11:23:32 -07:00
svcscm svcscm
adda4ed5b6 Updating submodules
Summary:
GitHub commits:

022d9f1794
afa0c55945
ad43782c24
99c728816a
d9a79b5a43
5ee87d25fb
004570cac6
585f997479
ad8882eb46
f66d30d0c5
4a95e37bd6
f60ad2cb0f

Reviewed By: wittgenst

fbshipit-source-id: 8c75d367bee754bc4a1cd80e158c4cc4a017d9dc
2021-10-28 09:02:03 -07:00
Jan Mazur
9f4c5f70eb blocking unix socket & .makefile for it
Summary:
.makefile is needed so we can have synchronised `read` and `readline`. Look how it's used it `class mononokepipe` and `class mononokepeer`.

`setblocking` is required because I want to use this socket here https://www.internalfb.com/code/fbsource/[ad5dc212149f14a9eb558984697e588182c56139]/fbcode/eden/scm/edenscm/mercurial/httpclient/__init__.py?lines=567

Reviewed By: chadaustin

Differential Revision: D31731045

fbshipit-source-id: a705d88fe372f75705ba7c386f7564f474665e2a
2021-10-28 08:20:35 -07:00
svcscm svcscm
fe809c5179 Updating submodules
Summary:
GitHub commits:

fe92e62e5a
149d102d3e

Reviewed By: wittgenst

fbshipit-source-id: e8d7bcfa2130728c74345481104f8fb5856c658f
2021-10-28 07:23:06 -07:00
Jan Mazur
0bbf744e97 unix domain sockets on Windows
Summary:
`socket.setblocking` is required by HTTPConnection http client in Mercurial. Commitcloud is using it when using the x2pagentd.

Commitcloud on x2pagentd is gated behind `--config auth_proxy.commitcloud_use_uds=True` which isn't rolled out anywhere right now.

Reviewed By: fanzeyi

Differential Revision: D31860864

fbshipit-source-id: 7b8864bb81afb30aa32a37f6dfe91f5e7806d8ee
2021-10-28 06:13:12 -07:00
Mateusz Kwapich
aa96ce7a0f add a warning in mononoke_admin rsync when skipping files
Summary:
This makes the command more intuitive to use and prevents surpise (that copy
didn't copy)

Reviewed By: StanislavGlebik

Differential Revision: D31961898

fbshipit-source-id: 1545780f6def3653297512f415feddcfddf83d29
2021-10-28 06:08:28 -07:00
Stanislau Hlebik
0e9798f1c0 mononoke: allow not running hooks for some bookmarks if moved to public commit
Summary:
We want to allow move some bookmarks without hooks if these conditions are met:
1) The affected commits are public
2) Bookmark doesn't add any new commits to the repo (i.e. it's just a bookmark
move, nothing else)

See T98731740 and D31961821 for motivation

Reviewed By: mitrandir77

Differential Revision: D31961877

fbshipit-source-id: 4966a3bdcf5e598194f54f7d8b10f8b780a25f30
2021-10-28 00:10:49 -07:00
Stanislau Hlebik
7e25291af1 mononoke: add --no-upload-if-less-than-chunks option to streaming_changelog
Summary:
We usually had option called "--skip-last-chunk" set, however turned out it's a
dangerous option to use. Normally a streaming changelog has only a single head,
however if we add --skip-last-chunk then there might be multiple heads in the
repo if the skipped chunk contained merge commits.
And this code https://fburl.com/code/0fkgmnaj just uses a "tip" commit to do a
pull right after streaming clone. The problem is that "tip" can be only a
single head out of all the heads we have. And tip can be a commit with a very
low generation number, in that case the subsequent pull would try to pull too
many commits at once.

In order to fix the issue I suggest to add --no-upload-if-less-than-chunks
option. This option wouldn't even try uploading chunks if we have too few of
them. So on the one hand it would allow us to not create too many small chunks,
but on the other it would fix the issues mentioned above.

Note that this option would mean that we would create more chunks than we
otherwise would. For example if --no-upload-if-less-than-chunks is 2, then on
average we would create 2x more chunks.

Reviewed By: Croohand

Differential Revision: D31957177

fbshipit-source-id: 8fa9476e4236d962d5f4f0fae96ce6db996a22dc
2021-10-28 00:07:59 -07:00
svcscm svcscm
d546bee255 Updating submodules
Summary:
GitHub commits:

693527da6f
3818c0463c
81d1c16915
427ea1fac8

Reviewed By: wittgenst

fbshipit-source-id: b4cdbc2b8fce55531fe3fe5a1e2ce135240cd9a7
2021-10-27 22:20:04 -07:00
svcscm svcscm
72083a0ade Updating submodules
Summary:
GitHub commits:

984dc8a94a
788d3d3de5
7a7a95a0dd
5bf9a7d5ee
8649518b9d
dfeab56202
b04308f651
4dfb6a24a3
b0cf282624

Reviewed By: wittgenst

fbshipit-source-id: bf8c716354997f05058ebc8129b42a25e6007139
2021-10-27 21:21:58 -07:00
Xavier Deguillard
0a5571c44b inodes: enable overlay GC on Windows
Summary:
On Windows, overlay data is never recursively removed, causing it to grow
unbounded. This may be the root cause of slow startup that some users have
reported. Since there is nothing Windows specific about this code, let's enable
it.

Reviewed By: fanzeyi

Differential Revision: D31834657

fbshipit-source-id: 852968cf803119a494f0eb71ba77f392b64437c3
2021-10-27 18:57:18 -07:00
Xavier Deguillard
c1daa62b5c inodes: add a loadAndRemoveOverlayDir function
Summary:
As the name implies, it loads an overlay directory and removes it at the same
time. This is done to bypass calling removeOverlayData when recursively
removing a directory as removeOverlayData would check if the directory no
longer has childrens and thus would fail.

Credits for this diff should go to chadaustin.

Reviewed By: genevievehelsel

Differential Revision: D30843607

fbshipit-source-id: 370491e454990ca5c8215501cd7e1d5e85526cce
2021-10-27 18:57:18 -07:00
Xavier Deguillard
c416b4f4c5 inodes: log when InodeMap is being initialized
Summary:
Some users have reported slow startup, this log will allow us to more easily
identify if time is spent initializing the InodeMap.

Reviewed By: genevievehelsel

Differential Revision: D31806744

fbshipit-source-id: f8b3122909058ab8f6859c661ef9615f390966e2
2021-10-27 18:57:17 -07:00
Durham Goode
01a61910ed edenapi: compress file responses in parallel
Summary:
We're seeing ever growing memory usage during large checkouts. It
appears to be caused by lz4 compression occupying the main thread enough that we
don't pull data out of edenapi fast enough, so the data from the server starts
queueing in memory.

Let's have multiple threads compressing the responses.

Note this only fixes it for non-scmstore. scmstore needs this same change, but
testing shows it still has a memory leak after this change, so it's hard to tell
if this change is working for scmstore. I'll do a followup diff for that.

Reviewed By: quark-zju

Differential Revision: D31973093

fbshipit-source-id: a6d2474a98b410085ce531db28a116c87d9e210c
2021-10-27 18:00:44 -07:00
svcscm svcscm
49e9081541 Updating submodules
Summary:
GitHub commits:

f23a938179
50baaca388
2cf24fcbdc
225ddc927d
66b5c8c81b
496980f40e
e5712a0ef2

Reviewed By: wittgenst

fbshipit-source-id: da4a0727bf1e410409a51f192e6bed01969450f3
2021-10-27 17:36:22 -07:00
Chad Austin
91502de90c break privhelper dependency on OpenSSL
Summary:
To avoid any risk of SSLKEYLOGFILE being used to unexpectedly write
files as root, ensure the privhelper does not even link against
OpenSSL.

Reviewed By: fanzeyi

Differential Revision: D31944839

fbshipit-source-id: 3280657a10f4a468ddb63a874d38198bd333e01c
2021-10-27 16:04:36 -07:00
svcscm svcscm
f3f09fdace Updating submodules
Summary:
GitHub commits:

97450e0b81
7f6b567ea0
a0e4da5872
4d964ad06d
82846f41d3
0d38938829
b1863d2753
1dc14a3255
cb6b703a91
5f72e94252
7a9ff14b48

Reviewed By: wittgenst

fbshipit-source-id: 67ea5cb96176edf1be3bab766a3be58bdc4925d7
2021-10-27 15:30:38 -07:00
Xavier Deguillard
c35ae5eae3 prjfs: use a FutureSplitter in FileMetadata
Summary:
Futures can only be waited on once, but this code can potentially try to wait
on it more. If for instance the size future were to fail, the continuation
would never be called, and thus the next call to getSize would obtain an
already moved future.

For now, let's simply use a FutureSplitter to close this bug. In the future,
the readdir code will be rewritten to be more asynchronous and to avoid this.

Reviewed By: genevievehelsel

Differential Revision: D31782917

fbshipit-source-id: 9e78fdec62dbccbc2796722175936d563a20ebcd
2021-10-27 13:51:07 -07:00
Xavier Deguillard
a954c9a113 immediatefuture: tag the semi() method with FOLLY_NODISCARD
Summary:
Ignoring the return value of this method is equivalent to dropping the future
entirely, which isn't what is usually desired. Let's make sure the compiler
helps us in finding these cases as code is converted.

Reviewed By: chadaustin

Differential Revision: D31945362

fbshipit-source-id: dd646365e00d3ebb04ed9b6803c561fc11ff4a14
2021-10-27 13:38:30 -07:00
svcscm svcscm
c971d3cf9e Updating submodules
Summary:
GitHub commits:

678e6a59ba
784b8792e8
91c8a12fc1
183b2a8696
59a53c0520
4ec31dc8ac
6c7e66bf14
f1dfc0e928
a7122390f7
59a16cee17
1e8e2408b8
8e8bfb238d
fc2ed1cbec
a5b331a237
37951bd68a

Reviewed By: wittgenst

fbshipit-source-id: 21005ebdaab761ad45d9a695d6f285074b67083d
2021-10-27 13:21:09 -07:00
CodemodService Bot
01acc9c287 Daily common/rust/cargo_from_buck/bin/autocargo
Reviewed By: farnz

Differential Revision: D31646308

fbshipit-source-id: e81b56f75fe077f0eb9ead44e4461263d27b6cbd
2021-10-27 11:24:34 -07:00
svcscm svcscm
94adf71246 Updating submodules
Summary:
GitHub commits:

8318a86263
e3de4a3df8

Reviewed By: wittgenst

fbshipit-source-id: c5ad57cfe170f594db6fa3dd97b87baf7f58ddea
2021-10-27 08:03:07 -07:00
svcscm svcscm
f77b71bd50 Updating submodules
Summary:
GitHub commits:

fafea3a1e2
32ec52ff68
d9cd2c09e0
1db717a1c9

Reviewed By: wittgenst

fbshipit-source-id: 8052ee95607c35f646c550cf4640dc1732f6d329
2021-10-27 05:38:57 -07:00
svcscm svcscm
3d7c913fd1 Updating submodules
Summary:
GitHub commits:

45d1c1710b
ea705fc027
606426a5fc
8b4c483831
185db68cfc
59e1d77b67

Reviewed By: wittgenst

fbshipit-source-id: c7216c65f1be2f8e1714a689896a70d9ca4b4d1c
2021-10-27 05:00:32 -07:00
svcscm svcscm
41637acb3f Updating submodules
Summary:
GitHub commits:

7e1dba525e
319d527519
5fb8bdd107
9ae42659f0
aedb6c98ac
1e2eadb0dd
3e724cfd47
91d23b3f9a
1d69ade0bb

Reviewed By: wittgenst

fbshipit-source-id: 5bb6da16823c73ed1a45e901b291470e1d7623b1
2021-10-27 04:19:52 -07:00
svcscm svcscm
270845288b Updating submodules
Summary:
GitHub commits:

e907363aa4
f72ad8c4ab
059e4ad18e
4f7ab64d07
638b572bbc
2e31e8792f
9ebbb2e9e0
bd5e962f31
3697c12741
3ef72e78b4
9cbdad34d2

Reviewed By: wittgenst

fbshipit-source-id: ef31b1197c9582457d6fd16829d72fa353a7f69c
2021-10-27 02:59:50 -07:00
svcscm svcscm
557c5a2317 Updating submodules
Summary:
GitHub commits:

6542e08a66
ac6cee8149
2a9dddc584
80961096a9
bacb1f14f6
c07aaa72e2
bc3b6829c1
3d67d6cc9b
9ac8fd0e84
e2eae6c433
ba9d3e5976
e79e50cd45
3ad799fc47

Reviewed By: wittgenst

fbshipit-source-id: c2dc21dac8dacec1700b40b077d03fa31524e146
2021-10-27 00:59:15 -07:00
svcscm svcscm
8f4dbf6f12 Updating submodules
Summary:
GitHub commits:

fcdacf17b2
cac627093a
76aeeca5f5
84824a23f8
b18a7fae15
c9731717f3
35ee1596b0
de55c3ae84
2c8ac9f66a
ec0b1c624a
d47db5398b
04e4ec8013

Reviewed By: wittgenst

fbshipit-source-id: cdc640f21d58dd459e892853ee141afc7a224ec7
2021-10-26 21:46:07 -07:00
svcscm svcscm
e17e5c0b8a Updating submodules
Summary:
GitHub commits:

cb3309758f
b18072ef0c
4553c36c95
ba1a4c1bcf
61f1b5b19f
d812b70957
f91e5bb4c9
94b2326d10
4d35768d9b
5358decf0c
8588c335cf
7b243ed9dc

Reviewed By: wittgenst

fbshipit-source-id: 364149cc14e72396a0ef02c364f8ffe8bd58ee32
2021-10-26 20:52:24 -07:00
Jun Wu
ed199a767d pushrebase: force draft 'rev_to_push % pushrebase_onto' as missing
Summary:
Force `draft() & (rev_to_push % pushrebase_onto)` as missing so they will be
rebased regardless of whether they exist on server.

This is a blocker of rolling out HTTP "commit known" endpoint further,
because that endpoint would report cloud backed up commits as "known"
and skip them during pushrebase so push doesn't work for commits
backed up in cloud.

This would be cleaner if we have a separate API to only trigger "rebase"
without pushing.

Reviewed By: DurhamG

Differential Revision: D31877854

fbshipit-source-id: 7e7017d93d21ab263dae37fee347a9690c324a06
2021-10-26 19:53:42 -07:00
Jun Wu
2500f27973 changegroup: drop "empty changegroup" warning
Summary: The warning is pointless and adds noise in Mononoke tests.

Reviewed By: DurhamG

Differential Revision: D31945881

fbshipit-source-id: a7667e5e552f1c924a95e6c50e41eca3f6a4ce42
2021-10-26 19:53:42 -07:00
Jun Wu
3fccd0b598 pushrebase: demonstrate bug rebasing known commit
Summary: Pushing a commit known by the server might cause the commit to not be rebased.

Reviewed By: DurhamG

Differential Revision: D31877856

fbshipit-source-id: c077960fb82b0b484775f6cc4d7425ce9bd93c02
2021-10-26 19:53:42 -07:00
Jun Wu
e5fc952da5 discovery: drop unsound "all remote known" fast path (BC)
Summary:
This used to be correct when both local and remote list all heads.  With
selectivepull, we only ask remote about certain heads, if those heads are
known, that does not mean the common heads are just those, since the server
might have other branches refer to related commits.

Dropping the path allows us to figure out "missing" commits more accurately.
This can be seen from the change in `test-fb-hgext-treemanifest-treeonly.t`.

This change also allows us to reproduce a pushrebase problem in the next diff.

This is a breaking change in case the push does not create new commits while
creating a remote bookmark. Previously the exit code might be 1. Now it's 0,
which seems more desirable since it's not "nothing changed".

Reviewed By: DurhamG

Differential Revision: D31877853

fbshipit-source-id: d03c1d0ffec98b46fbc59ff12ab2015f3c10385c
2021-10-26 19:53:42 -07:00
Jun Wu
922de59b1f discovery: remove dead code
Summary: `_findcommonheadsold` and its dependency `dagutil` are no longer used. Remove them.

Reviewed By: yancouto

Differential Revision: D31877855

fbshipit-source-id: 278dc979b097b424d79a3908fd12e02a0a4465ed
2021-10-26 19:53:42 -07:00
Xavier Deguillard
642179670c prjfs: use ImmediateFuture in the Prjfs callbacks
Summary: This completes the conversion to ImmediateFuture for Prjfs.

Reviewed By: chadaustin

Differential Revision: D31746629

fbshipit-source-id: 2587452da9032514c86f54a16194edbda2cf546d
2021-10-26 19:23:09 -07:00
Xavier Deguillard
d9cf8b002d inodes: use ImmediateFuture in PrjfsDispatcher
Summary:
This moves all the conversions to folly::Future one level up. This allow
removing all folly::Future code from PrjfsDispatcherImpl.

Reviewed By: genevievehelsel

Differential Revision: D31746626

fbshipit-source-id: cb9b78c9ea2f09045f4bc921ea820a77b5832ddb
2021-10-26 19:23:09 -07:00
Xavier Deguillard
601c0aa0af inodes: use ImmediateFuture in removeInode
Summary: This simply moves the conversion to folly::Future to the caller.

Reviewed By: genevievehelsel

Differential Revision: D31746632

fbshipit-source-id: e7a5606f6027cde071c3fed5ab1fc51dcfeb1258
2021-10-26 19:23:09 -07:00
Xavier Deguillard
454c7161a8 inodes: use ImmediateFuture in createInode
Summary: This simply moves the conversion to folly::Future to the caller.

Reviewed By: genevievehelsel

Differential Revision: D31746631

fbshipit-source-id: b9542ed81564d4e9ff255b7cb4a3fe74a6b3046e
2021-10-26 19:23:09 -07:00
Xavier Deguillard
38be4a5f83 inodes: use ImmediateFuture in createDirInode
Summary: This simply pushes the conversion to the caller.

Reviewed By: genevievehelsel

Differential Revision: D31746635

fbshipit-source-id: d562f139eb6bff910fcc934a0177582d1ae5c479
2021-10-26 19:23:09 -07:00