Commit Graph

58088 Commits

Author SHA1 Message Date
svcscm
7266c29b7d Updating submodules
Summary:
GitHub commits:

984efa75a3
cebecbbaff
0dedce9c3a
3b09ae7f66
59fcae89e3
f91de18ae4
20a7ef9858
7abc8e4594
ed20eb0e18
6fd5b8dfae
37add01a38
fca73296da

Reviewed By: wittgenst

fbshipit-source-id: dff9e170dcd2a81dd361c4bdc55aa8dfe90e1d4c
2020-05-27 21:11:30 -07:00
Genevieve Helsel
83079bd6ca use system configs in HgPrefetchTest
Reviewed By: chadaustin

Differential Revision: D21665935

fbshipit-source-id: 31019020769548e01c011d021a39d7e50e288664
2020-05-27 20:19:19 -07:00
Stanislau Hlebik
57f593f988 configerator-thrift-updater: sync D21743489
Reviewed By: ikostia

Differential Revision: D21743524

fbshipit-source-id: f320c19d5451942ffa3bab73148a657c322ce637
2020-05-27 18:47:01 -07:00
svcscm
6ba00d708d Updating submodules
Summary:
GitHub commits:

28cfb68041
e844b95a8b
72c5bd8a02
bcefc59e9f
0eb6489e21

Reviewed By: wittgenst

fbshipit-source-id: 3fc62a72f8cdd51d1243274fb493465d4801aee4
2020-05-27 13:42:17 -07:00
Stanislau Hlebik
e4023eaf19 mononoke: remove UseExistingIfAvailable from hg sync job
Summary:
It was used only once for testing push redirection. We no longer need it, so
I'd like to delete it to remove this old code and also to make it easier to
support ManualMove bookmarks.

Differential Revision: D21745630

fbshipit-source-id: 362952d95edb923cc4b60359321b563c1e4961de
2020-05-27 13:38:02 -07:00
Jun Wu
14b3c2e0f0 dag: move from_ascii to traits
Summary:
This adds flexibility. Now every type that implements DagAddHeads, including
NameDag, can import ASCII graphs.

Reviewed By: sfilipco

Differential Revision: D21626213

fbshipit-source-id: e258d88f97cbcc9aaf98d353a929803325185df7
2020-05-27 12:16:48 -07:00
Jun Wu
bd6c6fe18b dag: implement IdConvert on Dag structs
Reviewed By: sfilipco

Differential Revision: D21626214

fbshipit-source-id: 90d5a587e42340ac2b0f0b3f35f3bc084e969d40
2020-05-27 12:16:48 -07:00
Jun Wu
be5e3a20b4 dag: IdMapLike -> IdConvert
Summary: The trait was about converting between Id and VertexName. Rename to clarify.

Reviewed By: sfilipco

Differential Revision: D21626195

fbshipit-source-id: 874ca4ca3a1467084a08c6d9aa321201974e1978
2020-05-27 12:16:47 -07:00
Jun Wu
64dc05ab9d dag: move add_heads, flush, add_heads_and_flush to traits
Summary: This allows other kinds of DAG to implement the operations.

Reviewed By: sfilipco

Differential Revision: D21626220

fbshipit-source-id: 896c5ccebb1672324d346dfca6bcac9b4d3b4929
2020-05-27 12:16:47 -07:00
Jun Wu
4934987796 dag: implement PrefixLookup for Dag, MemDag and MemIdMap
Summary: This makes things a bit more flexible.

Reviewed By: sfilipco

Differential Revision: D21626194

fbshipit-source-id: f3ad486bcd5a6478d9e00f674d48f99504cded8c
2020-05-27 12:16:46 -07:00
Jun Wu
26217dcdb5 dag: move hex prefix lookup to a trait
Summary: This makes it possible for other types to implement the hex prefix lookup.

Reviewed By: sfilipco

Differential Revision: D21626218

fbshipit-source-id: 96e8b8c37e5aae2bd60658a238333b61902936d1
2020-05-27 12:16:46 -07:00
Jun Wu
577c9442bb dag: add VertexName::from_hex
Summary: It will be used in the next change.

Reviewed By: sfilipco

Differential Revision: D21626207

fbshipit-source-id: bbef70ef9d4f9aaa2039a6bc15d296e88db7f8dc
2020-05-27 12:16:46 -07:00
Jun Wu
38cc83e1bf dag: add short aliases for main public types
Summary:
Types like IdDag are not really used. The use of the word "name" is sometimes
confusing in other context. Therefore export shorter names like Dag, MemDag,
Vertex, avoid "name" in NameDag, MemNameDag and NameSet. This makes external
code shorter and less ambiguous.

Reviewed By: sfilipco

Differential Revision: D21626212

fbshipit-source-id: 5bcf3cecfd38277149b41bf3ba9e6d4ef2a07b2b
2020-05-27 12:16:45 -07:00
Jun Wu
e0d11803f2 dag: move DagAlgorithm to an independent trait
Summary:
This decouples DagAlgorithm from the IdMap + IdDag backend, making it possible
to support other kinds of backends of DagAlgorithm (ex. a revlog backend).

Reviewed By: sfilipco

Differential Revision: D21626200

fbshipit-source-id: f53cc271a200062e9c02f739b6453e1d7de84e6d
2020-05-27 12:16:45 -07:00
Xavier Deguillard
c04037d5aa cli: sys.stdout may be None
Summary:
On Windows, if edenfsctl is started by pythonw, sys.stdout will be None,
check if it is before calling isatty on it.

Reviewed By: fanzeyi

Differential Revision: D21732282

fbshipit-source-id: f0a63094f2c53b026c388f4e5b58433be4397ba9
2020-05-27 11:44:39 -07:00
svcscm
3d126c54b6 Updating submodules
Summary:
GitHub commits:

e1c7e6ce96
25cd078ee5

Reviewed By: wittgenst

fbshipit-source-id: 7d500ed8b8b8b1c16c6006880b51b24c23c5804f
2020-05-27 10:45:35 -07:00
Xavier Deguillard
f71b9d6381 error: remove unecessary newlines
Summary:
The FormatMessage API isn't very well documented in adding \r\n at the end of
the generated message, and the bit of code that needs to be used to remove
these is not very clear either.

We won't get gratuitous empty lines in the log with this.

Reviewed By: chadaustin

Differential Revision: D21663502

fbshipit-source-id: 203ff5015da6f3cebf7eaee9a8f989db342d096a
2020-05-27 08:53:24 -07:00
svcscm
4c81a9ab6e Updating submodules
Summary:
GitHub commits:

d743571943
8ab7b72558

Reviewed By: wittgenst

fbshipit-source-id: f26c310f970d09297c27042dfa91b1fe20d849e7
2020-05-27 08:53:23 -07:00
svcscm
7e4ec91e8f Updating submodules
Summary:
GitHub commits:

f4ec3998d8

Reviewed By: wittgenst

fbshipit-source-id: e07920315ac63edf6457ee19b2061255aee91ac6
2020-05-26 23:04:44 -07:00
Durham Goode
8ed66bc3fc pyrevisionstore: fix unused code warnings
Summary:
When we got rid of the delta logic, we also needed to get rid of some
unused functions.

Reviewed By: singhsrb

Differential Revision: D21725043

fbshipit-source-id: ac069e6b0468e2275f353a9970b8971b5a2cfa23
2020-05-26 18:09:22 -07:00
svcscm
e678c2730d Updating submodules
Summary:
GitHub commits:

ee33ca6a34
39740ea64b

Reviewed By: wittgenst

fbshipit-source-id: 15699f4d930741ed5bbaa2aa79f0377791f51cbd
2020-05-26 18:09:22 -07:00
svcscm
d05dd60087 Updating submodules
Summary:
GitHub commits:

c20846234b
ad1c3b8efe
92f510c83b
0ddc1a2fff
82a82c76e7

Reviewed By: wittgenst

fbshipit-source-id: aeef80444b40ad65e2ed89ff419878ae563c177d
2020-05-26 17:20:34 -07:00
svcscm
94f2a7d235 Updating submodules
Summary:
GitHub commits:

81c41ef1f6
b5ec32d2b1
b09ee1a03c

Reviewed By: wittgenst

fbshipit-source-id: d7c53165454afe1ae4595cf402a4e1dc76bafa56
2020-05-26 17:20:34 -07:00
svcscm
20a756f1a5 Updating submodules
Summary:
GitHub commits:

fb0ccbb6aa
774673fbd2
44e5cfcca4
9554a67c73

Reviewed By: wittgenst

fbshipit-source-id: 3bc67d8ee3f409d422dd393cf949e4d802a6ac95
2020-05-26 13:47:19 -07:00
TJ Yin
65d6a4d886 Remove thrift setters
Summary:
Thrift setter API is deprecated since it doesn't bring any value over direct assignment. Removing it can reduce build-time and make our codebase more consistent.

If result of `s.set_foo(bar)` is unused, this diff replaces

    s.set_foo(bar);

with

    s.foo_ref() = bar;

Otherwise, it replaces

    s.set_foo(bar)

with

    s.foo_ref().emplace(bar)

Reviewed By: chadaustin

Differential Revision: D21712029

fbshipit-source-id: 3a332b4bf6fac6b3cf396d34e6d5ca4849181a6d
2020-05-26 12:38:37 -07:00
Stefan Filip
e44681e307 mononoke: add IdMap::get_last_entry
Summary: Useful for determining where an incremental building step left off.

Reviewed By: StanislavGlebik

Differential Revision: D21634698

fbshipit-source-id: e9b0473003c529d5c934754f1ece23df69c4be66
2020-05-26 07:37:11 -07:00
Kostia Balytskyi
01695d59e8 commitcloud_backfiller: add tests for forward and reverse fillers
Summary:
This diff extends the integration test for the forward filler to execute queue operations, as well as the core business logic.
It also adds a test for the reverse filler, which does the same, but in a different difection.

Reviewed By: krallin

Differential Revision: D21628705

fbshipit-source-id: fb4ee0ecacc990d073425f3f37f794f74c057ea2
2020-05-26 07:00:12 -07:00
Kostia Balytskyi
56eea5b6f6 commitcloud_backfiller: add reverse filler
Summary:
This diff finally introduce the continuous reverse filler. Specifically, this adds a cli (and underlying wiring) to operate the filler logic in the `reversefillerqueue` table.

To achieve this:
- the filler class is turned into a base class with two subclasses for the forward and reverse fillers
- the main file is renamed from `forwardfiller.py` into `filler.py`, to better reflect the independence of direction.

Reviewed By: krallin

Differential Revision: D21628259

fbshipit-source-id: 5676a162a62f0dc6fe80e6300b72d30370fc80b4
2020-05-26 07:00:12 -07:00
Stanislau Hlebik
7ccd28de14 scs_server: add track_history_across_deletions parameter
Reviewed By: krallin

Differential Revision: D21718738

fbshipit-source-id: b7dd7e05b1773ac1a442d89991549f0f97e1e55b
2020-05-26 05:38:55 -07:00
Alex Hornby
a7a4dcd046 mononoke: add devdb support to integration test runner
Summary: Add devdb support to integration test runner so that one can more easily inspect mysql test data, also makes it easier to run tests with locally modified schema.

Reviewed By: HarveyHunt

Differential Revision: D21645234

fbshipit-source-id: ec75d70ef59f04548c7346a122298567dd09c264
2020-05-26 02:36:12 -07:00
svcscm
3173bb25c8 Updating submodules
Summary:
GitHub commits:

e69b649453
7d97a671aa
bc44b0f07d
545f4fc1c1
85f9aafb64
5267abf80e
df2f1779db

Reviewed By: wittgenst

fbshipit-source-id: dc3b4dcf07c36545428356018ccd2ab769d0843e
2020-05-26 02:36:12 -07:00
svcscm
cc12206e49 Updating submodules
Summary:
GitHub commits:

213c4ed5b4
1d0b0d98cd
9043fd7559
d65ffba71e
a395ae3d31
bd68bfb41b
f187cd3ec0

Reviewed By: wittgenst

fbshipit-source-id: a122bc5dbcc57e018e2daf1ac19f53859a3424f4
2020-05-26 00:29:16 -07:00
Yedidya Feldblum
ed2c4a65ba Add missing includes of folly/synchronization/Baton.h
Summary: Add missing includes of `folly/synchronization/Baton.h`.

Differential Revision: D21716396

fbshipit-source-id: 8c8fb818f3083b4fe04fd1c62923d7ba698dcedd
2020-05-25 23:13:35 -07:00
svcscm
06f32fa94e Updating submodules
Summary:
GitHub commits:

71dbf454c9
7e4f99fc6f

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 45c5a4ea86e82eed15ebe79ac542b3a90183f4b9
2020-05-25 22:23:39 -07:00
svcscm
ab13dfc04a Updating submodules
Summary:
GitHub commits:

3139f52cb0
b408eaadae
4091de5e08

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: f14e0475ad4dc0e5555f0fbe37f5b36339cceef1
2020-05-25 07:24:32 -07:00
svcscm
f86cff6e22 Updating submodules
Summary:
GitHub commits:

9db970345d

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 48d989adf41319527b4480fbea081e2079b3cf14
2020-05-24 14:23:17 -07:00
svcscm
47a8bd05d7 Updating submodules
Summary:
GitHub commits:

ac5666bd7d
d5ce6e820b
558c49789f

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: a016ba866d2996169de881377af59ccf85cecb13
2020-05-23 15:33:15 -07:00
svcscm
d2484b4bb3 Updating submodules
Summary:
GitHub commits:

44ff9b5003

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: b8a6d0afa64ccdbb45362f7d61899d5cb0142e31
2020-05-23 01:23:54 -07:00
svcscm
6a871bb4d8 Updating submodules
Summary:
GitHub commits:

070df52dd0
c4f10fe40a
7945e61cf0
93d952a945
955e1bf5d0
f23ada231b
9504676f7f
78c6f87ce3
981e8f7255
058217dd8b
cfad3e375d

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 98d0b40dac46330a72d99038a6639b943f212e7b
2020-05-22 01:06:29 -07:00
Wez Furlong
72111106fd getdeps: use eden prefetch on windows
Summary:
Now that we've deployed the new eden build with globfiles
support, we can enable the use of eden prefetch in the getdeps
build when running inside an EdenFS mount on Windows.

Reviewed By: fanzeyi

Differential Revision: D21692689

fbshipit-source-id: b42e778901976cf0385ec31056c227b2049162dc
2020-05-21 22:55:34 -07:00
Sukwon Chung
abaa62ad33 Handle inaccessible files in redirections in eden du
Summary:
1. Add directory existence checking logic before checking "legacy_bind_mounts_dir"
2. Still print the disk consumption returned by the du command when it fails with an error invoking du -skxc

Reviewed By: chadaustin

Differential Revision: D21683421

fbshipit-source-id: 531b6b289e9ffa445ed691611c9cbf22f393e742
2020-05-21 22:20:17 -07:00
svcscm
1aeff22dfc Updating submodules
Summary:
GitHub commits:

be6ee4d528
4b5b7d787f
6a97f85bcb
fb48f55139
0ef92d81db

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: de7acb38ade33a05bf4f52dc1f24373745f11f57
2020-05-21 22:20:16 -07:00
svcscm
9e3bd69e01 Updating submodules
Summary:
GitHub commits:

0bc8ef0d72
647364858e
28c893e596
d74f1d479e
91f616e4cf
f6e3f7d3d2
bbfcf1717b
122f3d90ff

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 36b22e15ac2988d6cc8c68cf54ee4cd2da4b5abc
2020-05-21 20:50:29 -07:00
Stefan Filip
a2254714c3 mononoke: update bulkops::fetch_all_public_changesets to return commits in order
Summary:
At first glance people will assume that changesets are returned in the same
order that they were added in the database or that at least commits are
returned in a deterministic fashion. That didn't happen because the both
changeset ids and changeset entries were received without any order.
This diff updates the function to returns results in order they were added
to the database.

Reviewed By: krallin

Differential Revision: D21676663

fbshipit-source-id: 912e6bea0532796b1d8e44e47d832c0420d97bc1
2020-05-21 20:43:45 -07:00
generatedunixname89002005307016
f9358e566a suppress errors in eden - batch 1
Summary:
This diff is auto-generated to upgrade the Pyre version and suppress errors in eden. The upgrade will affect Pyre local configurations in the following directories:
```
eden
```

Differential Revision: D21687853

fbshipit-source-id: baf0d9bc33f86da63ea289690faca6cf4d566588
2020-05-21 19:32:35 -07:00
svcscm
de0d51cb86 Updating submodules
Summary:
GitHub commits:

811ce17b86

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 8b0d8d59cbea551448cab9442667f23822aa464d
2020-05-21 19:32:35 -07:00
svcscm
816ae7971c Updating submodules
Summary:
GitHub commits:

732d3ffcae

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 40fabfa4b326e193419780e2dbf4276da4ec58c8
2020-05-21 17:49:36 -07:00
Stefan Filip
cafbbcd9c8 mononoke: add MemIdMap
Summary:
This structure has similar functionality to the IdMap that is backed by SQL.
It is probably going to be useful for caching in the case of batch operations.

Reviewed By: quark-zju

Differential Revision: D21601820

fbshipit-source-id: 9c3ebc3e9dc92a59ce0908fc241bd2b97da88dca
2020-05-21 17:19:16 -07:00
Stefan Filip
b9a93d49e5 mononoke: bulk construction of the segmented changelog Dag
Summary:
`Dag::build_all_graph` will load the whole graph for a given repository and
construct the segmented changelog from it.

Reviewed By: StanislavGlebik

Differential Revision: D21538029

fbshipit-source-id: b4ba846bb2870ba73257bed6128b8e198a0aab3e
2020-05-21 17:19:15 -07:00
svcscm
8ffad53b14 Updating submodules
Summary:
GitHub commits:

7c832f1dbb
791aa79790
263ece6907
826295a5e9
eaaf2c2adf
e52980a9ee

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 88c8e28d2e31ba3ca58cf946b60adcb4e8f631c7
2020-05-21 17:01:30 -07:00