Commit Graph

66406 Commits

Author SHA1 Message Date
Andrey Chursin
36e9c5c1f6 backingstore: fix debug compilation warnings
Summary: There were bunch of warnings when compiling locally with debug_assertions

Differential Revision: D29594303

fbshipit-source-id: 7d257ff3d2450bfe8a089246b18511eb091ca361
2021-07-07 16:23:17 -07:00
Andrey Chursin
d9ba6093bb checkout: fix issue with symlink=>directory replacement
Summary:
We had an issue in native checkout when update needed to remove a symlink and then create a directory with same files instead of symlink.
This used to fail, because update has a plan to write to new files, but the files has already 'existed' as part of a symlink, so unknown files check were failing.

This code makes sure that when listing untracked files we do not go inside symlinks, and treat audit errors from VFS as if file did not exist

Reviewed By: DurhamG

Differential Revision: D29567562

fbshipit-source-id: 1b6751cc00c3c628e2cab8c081540dba200209fa
2021-07-07 14:23:40 -07:00
Liubov Dmitrieva
e652bd106a Revert D29586388: edenapi: upload trees client side API
Differential Revision:
D29586388 (0be0a68cca)

Original commit changeset: 73c549f1a0d4

fbshipit-source-id: 53d067bc2bb949945394aa75851e8e93176cd4e2
2021-07-07 14:23:40 -07:00
Liubov Dmitrieva
0be0a68cca edenapi: upload trees client side API
Summary:
Add new client side API for upload trees.

Before uploading them, check what is already present on the server, similar as we check for filenodes.

I also added --force flag for the `hg cloud upload` command. It should be useful in general and useful for testing.

Reviewed By: markbt

Differential Revision: D29586388

fbshipit-source-id: 73c549f1a0d4328a64a133ab508fb4d253a4c33d
2021-07-07 14:04:33 -07:00
Prabhash Rathore
889ceef7b9 Remove direct uses of gmock.h
Summary: Remove direct uses of gmock.h

Reviewed By: chadaustin

Differential Revision: D29532548

fbshipit-source-id: c4262eb2bba7461c4f4b6dc9114dae4bcb4c5f82
2021-07-07 13:32:31 -07:00
Liubov Dmitrieva
d327996144 edenapi: upload filenodes (client side)
Summary:
upload filenodes (client side)

On the client side I implemented file upload and filenodes upload in the same API repo.edenapi.uploadfiles

This is because we should use the tokens from the file upload part to feed then into filenodes upload request.

Reviewed By: markbt

Differential Revision: D29549091

fbshipit-source-id: 436de187c8dce9a603c0c0a182e88b582a2d8001
2021-07-07 11:31:05 -07:00
Mateusz Kwapich
1e00f00813 fix crash in pullcreatemarkers
Summary:
D29401200 (538bb71548) is crashing hg pull in some cases:

      File "/opt/fb/mercurial/edenscm/hgext/pullcreatemarkers.py", line 89, in _cleanuplanded
          draftnodes = draftnodes & difftolocal.get(diffid)
      TypeError: unsupported operand type(s) for &: 'set' and 'NoneType'

Reviewed By: krallin

Differential Revision: D29587344

fbshipit-source-id: 8cc3c0e1f65625950e323e76537934a28768634e
2021-07-07 09:56:12 -07:00
svcscm svcscm
2347d147dd Updating submodules
Summary:
GitHub commits:

c2a4855fcb
d204b6f3ff
2e0f26bb9c
8c5c5103c3

Reviewed By: bigfootjon

fbshipit-source-id: ab43b22420179f471202bbf8dda79bfee30149ae
2021-07-07 09:22:53 -07:00
Xavier Deguillard
464eef804c cli: fix buckversion collection on Windows
Summary:
subprocess.run doesn't capture the output of a command by default, thus the
buckversion is populated with a CompletedProcess, which cannot fit in the
environment.

Differential Revision: D29576149

fbshipit-source-id: 9d0e13477ac2ffc479e093ea7231eb552c31a5ec
2021-07-07 09:04:00 -07:00
svcscm svcscm
b36e445963 Updating submodules
Summary:
GitHub commits:

6f5a0896d3
c77fb8dcfa
c7e890d8ec
5bc724e7e8
15ff4ab906

Reviewed By: bigfootjon

fbshipit-source-id: 00498fed43787c3f98ae84e816c515beb35c5dde
2021-07-07 08:55:51 -07:00
svcscm svcscm
760d05c6b2 Updating submodules
Summary:
GitHub commits:

3ba0a1bf32
8d447e81b8

Reviewed By: bigfootjon

fbshipit-source-id: f1cce9e8a386a8a61b9345fecac9fd32ff707ce8
2021-07-07 07:59:22 -07:00
Alex Hornby
4db26bffd3 mononoke: update bundle to use byteorder::BigEndian
Summary: update bundle to use byteorder::BigEndian in preparation for Bytes upgrade.  New versions of Bytes no longer reexport it.

Differential Revision: D29561928

fbshipit-source-id: ce44d9c27f9786a4bcec8f7166763c95828847e8
2021-07-07 07:52:59 -07:00
Yan Soares Couto
b60cfff714 Use Reloader on redacted config
Summary: Use the class added on previous diff on redacted config as well

Reviewed By: mitrandir77

Differential Revision: D29521423

fbshipit-source-id: 70f5a1cbce80a0068a0f438b7d217bfffb6a1592
2021-07-07 06:21:38 -07:00
Yan Soares Couto
f6a6b6a337 Extract periodic reloader to common class and use it in skiplist
Summary:
I've seen periodic reloading of stuff in at least 3 places in mononoke (2 of which I added, skiplists and redaction config, and also on segmented changelog, there might be more).

This stack extracts that logic to a common place, so we don't need to reinvent that logic all the time, and it's easier to do it the next time.

Reviewed By: mitrandir77

Differential Revision: D29520651

fbshipit-source-id: 59820c03f168cb25e2c6345e36746121451f34e2
2021-07-07 06:21:38 -07:00
Stanislau Hlebik
42c8cc1247 mononoke: remove globalrev sql syncer
Summary: We don't need it anymore, and we recently had a sev that was caused by globalrev sql syncer. Let's remove it

Reviewed By: mitrandir77

Differential Revision: D29557246

fbshipit-source-id: c7d0232203b098dff3d750d34093877240d961c4
2021-07-07 04:25:49 -07:00
Mateusz Kwapich
051894b81d add fb303 flags to async request worker
Summary: needed to set up tw health check

Reviewed By: StanislavGlebik

Differential Revision: D29580808

fbshipit-source-id: 6a3833d652979915fd44dc6d89511192397d8b96
2021-07-07 03:47:07 -07:00
svcscm svcscm
4d0ba0c55f Updating submodules
Summary:
GitHub commits:

11841edf84
dcfcd342ab
ef9928ce40
31d188752c

Reviewed By: bigfootjon

fbshipit-source-id: 74d46343da7a7d992f14ba36286a7ead263b34ab
2021-07-06 22:03:24 -07:00
svcscm svcscm
49b04635b8 Updating submodules
Summary:
GitHub commits:

5ea3837abf

Reviewed By: bigfootjon

fbshipit-source-id: 8b2dd36846eb7a421b0a8e2e1f482ae2dd4ed0cf
2021-07-06 21:31:23 -07:00
svcscm svcscm
aacaacd6f9 Updating submodules
Summary:
GitHub commits:

77ba4cccd1
e48caecadf
478b9eef8c
4c2455c53f

Reviewed By: bigfootjon

fbshipit-source-id: 605a76193217c0c6944074ed82ac2bd7f8b2e247
2021-07-06 20:04:45 -07:00
svcscm svcscm
8b511b90d2 Updating submodules
Summary:
GitHub commits:

90d973ee31
714ce5041d

Reviewed By: bigfootjon

fbshipit-source-id: 214cbf66289cad3abddae036ceb3ccd60501ae53
2021-07-06 19:16:09 -07:00
Jun Wu
c4fa0eaf61 io: do not allocate stderr stream if it's mixed to stdout
Summary: There is no point to keep an empty buffer around.

Reviewed By: DurhamG

Differential Revision: D29565105

fbshipit-source-id: 1b8ea5e0158d89e119b01b1bbedd25dc280b44f3
2021-07-06 19:06:20 -07:00
Carolyn Busch
c3d23d8b75 purge: Remove unused status work
Summary: The keepfiles arg for the purge method is unused. Delete it and save a repo recrawl.

Reviewed By: DurhamG

Differential Revision: D29567714

fbshipit-source-id: 47d6b1d13aab3b740685528bffda4e2f77c97b2a
2021-07-06 19:01:04 -07:00
svcscm svcscm
d300bf3b66 Updating submodules
Summary:
GitHub commits:

5069aeaac3
a3cdb88904
984de699eb
b294f49416
0dcf4b6c28

Reviewed By: bigfootjon

fbshipit-source-id: 033784eed7c364c5fd5f09d5ed77f81c4eb11381
2021-07-06 16:20:36 -07:00
svcscm svcscm
ebb06a6c94 Updating submodules
Summary:
GitHub commits:

e90c938443
434bd8414e
f463fab79e
cf76b34175
34ac399bbc
1b1faddc90

Reviewed By: bigfootjon

fbshipit-source-id: f41db0bbec68819c3734336d2d15fd60f5187f92
2021-07-06 15:43:57 -07:00
svcscm svcscm
f3d9ab124d Updating submodules
Summary:
GitHub commits:

f5cedf0b32
820702a9ab
3b3cee122f
0aad991e60
dbdb7394df
1270443964
7f20d7ae8a
f5b69ce1ba
f706f4ebff

Reviewed By: bigfootjon

fbshipit-source-id: f28429d892ecef3f1fae1cff088a81132e59bb5f
2021-07-06 15:13:17 -07:00
svcscm svcscm
1a7d95d415 Updating submodules
Summary:
GitHub commits:

6403a7cc18
067e4c3b5b
4cb4dbb510
0d620697e7
fcd8088333
657e5b791c
0f63fb79b4
e4a612e384
8768ca4651
810be648ef
4f93740b07
7ec4368577

Reviewed By: bigfootjon

fbshipit-source-id: 1b8874e875d6beb121d670b9bf6b8197d7271f33
2021-07-06 14:46:37 -07:00
svcscm svcscm
6cc1ec8346 Updating submodules
Summary:
GitHub commits:

956e582e9f
804e733c7a
321cbeffe4
4215b920c9
76d10ab8dd
eca48d2160
a46edfd40b
a52699d2e6
464b0d357e
eef3da61ad
3e1556b296
e7f6e586d5
521ee0cb38

Reviewed By: bigfootjon

fbshipit-source-id: 40da914e15e0a69175d3e2aac33e73c3c1fc0bae
2021-07-06 14:16:20 -07:00
Jun Wu
b3419f8dba pull: filter out existing heads to pull
Summary:
If heads exist in the repo, there is no need to pull them.

Practically we configured selectivepull to include master and stable.
While the master head is excluded by the pull fast path, the stable bookmark
previously triggers the heavyweight pull. This diff makes it that we can
skip the heavyweight pull and avoid other issues like devel-warn importing
empty changegroup.

Reviewed By: DurhamG

Differential Revision: D29525476

fbshipit-source-id: 9d1ff28d1194cac22ae66e669a5bd9dbe3f750c4
2021-07-06 14:01:55 -07:00
Durham Goode
9014a85e66 tests: fix test-fb-hgext-treemanifest-prefetch.t on Mac
Summary:
The recent treemanifest refactors broke this. The behavior seems
different on Mac vs others, so let's just make the output optional with (?).

Reviewed By: singhsrb

Differential Revision: D29565879

fbshipit-source-id: 35457a6d38b02b802cc0f98d31dcab38711ff1fe
2021-07-06 13:55:31 -07:00
Durham Goode
318343765a Enable fb dynamicconfig loading inside eden backingstore
Summary:
Reenables dynamicconfig loading with eden backingstore. Previously it
broke edenfs-windows-release, but we believe the
opensource/fbcode_builder/manifests/eden tweak has fixed it.

Reviewed By: xavierd

Differential Revision: D29561192

fbshipit-source-id: 775dd21d177f3baa09b0192e7d3f7231008c3766
2021-07-06 13:53:41 -07:00
Jun Wu
4a3664c40e localrepo: check before using repo weakref
Summary: The `repo` weakref might be invalid after `__del__`. Check before using it.

Reviewed By: DurhamG, singhsrb

Differential Revision: D29565718

fbshipit-source-id: 54c86414cd80db0d10a3966ed4e677b31ddcd906
2021-07-06 13:49:39 -07:00
svcscm svcscm
75cedce4ca Updating submodules
Summary:
GitHub commits:

880ad202f0
bd2dc780c9
8e9824a6be
a9339b5ff0

Reviewed By: bigfootjon

fbshipit-source-id: b3e98774482196d18c36e462381a4ec28dbc2df9
2021-07-06 13:33:29 -07:00
Jun Wu
8bc4d6e3fb cpython-ext: rename pycell to PyCell
Summary:
cpython-ext is not part of hg business APIs. It does not need to be consistent
with lower-case class name (and hg codebase is okay with non-lowercase class names,
just that most classes there are lower-case).

This resolves a rustc warning about the struct name.

Reviewed By: kulshrax

Differential Revision: D29526579

fbshipit-source-id: a4bc8e788d55c65aae9eaa87e2c684c2fded7ae2
2021-07-06 13:16:10 -07:00
svcscm svcscm
1dc37705b7 Updating submodules
Summary:
GitHub commits:

e6fe42d8f1
4dd70bdb5d

Reviewed By: bigfootjon

fbshipit-source-id: 828dba036da8e878b3c2a02556280a8950338ad3
2021-07-06 13:08:01 -07:00
Ratnadeep Joshi
136b03fb92 Changing eden/Eden/edenfs/Edenfs in the help and other user visible texts to EdenFS
Summary: There are a lot of places in user visible text such as command line help  where EdenFS is mentioned as eden/Eden/edenfs/EdenFS. This will make it consistent to 'EdenFS' in most cases. In the places where it is referring to the process/daemon, 'edenfs' will be used.

Reviewed By: chadaustin

Differential Revision: D29419151

fbshipit-source-id: 7b8296f0a0c84fdcb566ff811f7fcedbe7079189
2021-07-06 12:17:20 -07:00
svcscm svcscm
040fbdb646 Updating submodules
Summary:
GitHub commits:

d41345d29e
a23e084534
1ae026c400
0e94d0aa64
1ade594ce7

Reviewed By: bigfootjon

fbshipit-source-id: 254da8dea6293c8ad683cf6dd9b0d952fe8bc088
2021-07-06 10:47:51 -07:00
svcscm svcscm
f43bc1fa7f Updating submodules
Summary:
GitHub commits:

6cda44845c
67cc649bb9
50b9a4906b
91735ef36a
570248aeff
f84d5f7a80
406423afdd

Reviewed By: bigfootjon

fbshipit-source-id: 13eddc0d40b264f1933436d7fa1c1beaf2d5f01c
2021-07-06 10:00:04 -07:00
svcscm svcscm
52a8b08926 Updating submodules
Summary:
GitHub commits:

85402d8d7b
37cd53cacc
7fa83d2430
c6c2a78adc
87b0f70d83
331236f54c
91c4e6d3e7
89bb2f5cad
5d0836e442
a30d4c9813

Reviewed By: bigfootjon

fbshipit-source-id: cf9c951e115446e1a434437825b35e9d0e2e0f80
2021-07-06 09:21:55 -07:00
svcscm svcscm
1dc4632c02 Updating submodules
Summary:
GitHub commits:

caad46a885
210ce06732
97fefa455c
51db6ba9b2
ffbe8aff6a
151893aa22
2a26624c6f
581f546b6a
9bdd3c8e46
f314463417

Reviewed By: bigfootjon

fbshipit-source-id: 3a0bd9496b80d0612acc8786442ea33666607dcd
2021-07-06 08:52:19 -07:00
Mateusz Kwapich
fa8796ae19 change_target_config implementation
Summary: The implementation of change_sync_target_config_method.

Reviewed By: StanislavGlebik

Differential Revision: D29515737

fbshipit-source-id: 748278e73b1ed727550f3f05451b508a70be07db
2021-07-06 08:32:48 -07:00
Mateusz Kwapich
28d69d60c8 use the SourceName newtype where possible
Summary:
I got frustrated with the fact that half of the functions in
megarepo_api required the source name to be wrapped into newtype and
other half didn't. This refactor unifes it everywhere except the thrift
datastructure itself - not sure if we can afffect thrift codegen in this way.

Reviewed By: StanislavGlebik

Differential Revision: D29515474

fbshipit-source-id: 2d55a03cf396b174b0228c3fcc627b2296600400
2021-07-06 08:32:48 -07:00
Mateusz Kwapich
ae57ff3ccc make writing state optional in create_merge_commits
Summary:
The merge commit in case of change_target_sync_config won't be representing any
consistent state of the target so we don't want to write the remapping state
file there.

Reviewed By: StanislavGlebik

Differential Revision: D29515476

fbshipit-source-id: b0703be1127af6582785510fde51ff8501fb4f17
2021-07-06 08:32:48 -07:00
Mateusz Kwapich
15f3eadc49 make create_move_commits take just sources
Summary:
in case of change_target_sync_config we'll be creating move commits only for subset
of sources to let's change the function singature to so it's possible to
specify such subset.

Reviewed By: StanislavGlebik

Differential Revision: D29515475

fbshipit-source-id: 31002ec56dad872948bcbc79b0ed5fdb794e1f10
2021-07-06 08:32:48 -07:00
Mateusz Kwapich
85f31f3f85 move reusable functions to common
Summary:
The `change_target_config` methods responsibilities have a huge intersection
with `add_target_config`: the change method needs to know how to merge-in new
sources into the target and the whole "create move commits, then create merge
commits" flow can be reused.

Reviewed By: StanislavGlebik

Differential Revision: D29515301

fbshipit-source-id: c15f95875cbcbf5aad00e5047f6a8ffb55c4da31
2021-07-06 08:32:48 -07:00
svcscm svcscm
de07c13391 Updating submodules
Summary:
GitHub commits:

eac6011ae2

Reviewed By: bigfootjon

fbshipit-source-id: 887a0fb4ae4d3f71cdbdb3ef0cb0fbf7d52a4403
2021-07-06 08:23:17 -07:00
svcscm svcscm
6822047a1b Updating submodules
Summary:
GitHub commits:

27b932eb6d
18235c538b
77ff3bb3d2
0243bf8e58

Reviewed By: bigfootjon

fbshipit-source-id: 728bfcd9739635ae50e4a2a9b5867f79aa8a37b8
2021-07-06 00:38:00 -07:00
svcscm svcscm
88a40d30aa Updating submodules
Summary:
GitHub commits:

a2b4cc12ca

Reviewed By: bigfootjon

fbshipit-source-id: 1c67ebdf9e42fa1ac5b3880c76ad4753870fa789
2021-07-06 00:04:28 -07:00
svcscm svcscm
17b27fa89a Updating submodules
Summary:
GitHub commits:

919ccfb918
fc5319b5ff
0ac9cc64f8
303b872ae3

Reviewed By: bigfootjon

fbshipit-source-id: 1af638816f948baa8a6c71bc2a78654179b1ace2
2021-07-05 15:51:01 -07:00
svcscm svcscm
ce3b24851e Updating submodules
Summary:
GitHub commits:

c30c7c1bf2

Reviewed By: bigfootjon

fbshipit-source-id: 5b05bfd1e2321f45816b2b0eb74b4c09003ad4c3
2021-07-05 15:20:14 -07:00
Thomas Orozco
19769b7cb3 commitcloud: only check local nodes in _checkomissions
Summary:
With segmented changelog, this `if head not in repo` check goes and queries
the server to know if this exists. That's slow:

https://fb.workplace.com/groups/corehg/permalink/880425025886062/

This should hopefully fix it.

Reviewed By: quark-zju

Differential Revision: D29550877

fbshipit-source-id: f874fea3f42e1bde0acd4146bcfede4854b585f1
2021-07-05 14:38:33 -07:00