Commit Graph

82628 Commits

Author SHA1 Message Date
Jun Wu
e0afcd18bd log: partically rewrite _makelogrevset to be less cryptic
Summary:
The `_makelogrevset` feels cryptic, partially because its use of `opt2revset`
and related logic for adhoc revset expression calculation.

This diff removes `opt2revset` and related logic, so:
- `opts` is no longer both input and output. It's only input. The output is a
  different variable.
- Use `revsetlang` APIs to format revset strings directly, without going
  through an indirection via `opts`. Avoid `repr` or `a % b` formatting.
  Note: `%d` is formatted as `_intlist(v)` instead of `rev(v)`.

The new code generates slightly simpler revset expressions with less `()`s
(or "group" in revsetlang AST).

Reviewed By: zzl0

Differential Revision: D45936983

fbshipit-source-id: 3155016a85fa9ea61f9334a2d1fc82eac5450fec
2023-06-06 11:13:25 -07:00
Jun Wu
b49ad5cac6 revset: kill _firstdescendants
Summary:
It's already the same as `descendants` in our current implementation.
It's non-trivial to implement efficiently and is rarely used. So let's just
remove it for now.

Note the order of children of a commit is undefined, unlike parents. If we want
to provide a "meaningful" order and implement this in the future we might want
to use commit date etc to sort children.

Reviewed By: zzl0

Differential Revision: D45936979

fbshipit-source-id: bff72a130a5ffb7c573f06374da8f9c02791049f
2023-06-06 11:13:25 -07:00
Jun Wu
1064ae23d4 revsetlang: add %v format for variadic args
Summary: Used by the next change.

Reviewed By: zzl0

Differential Revision: D45936988

fbshipit-source-id: f2edee33bfefe3e5dd90a3cd7bc157d3b537cc0f
2023-06-06 11:13:25 -07:00
Jun Wu
aa8409d980 revsetlang: add "formatlist"
Summary: Useful to chain a list of revset together.

Reviewed By: zzl0

Differential Revision: D45936980

fbshipit-source-id: 1775cd472e239f56971d0b441aae3e416852ea3f
2023-06-06 11:13:25 -07:00
Jun Wu
6ec291990b log: mark "--branch" as deprecated
Summary: Named branches are removed in our implementation. Clean them up in the log command.

Reviewed By: zzl0

Differential Revision: D45936987

fbshipit-source-id: 98d3df01b1f3db53861f886289cb720dccf0535a
2023-06-06 11:13:25 -07:00
Jun Wu
5020be072f log: drop "cannot follow nonexistent file" message
Summary: It's not used anywhere. This removes a dependency on the legacy filelog.

Reviewed By: zzl0

Differential Revision: D45936981

fbshipit-source-id: 1c3af8dc792454d1bf893e922c1c37c80fa0a79b
2023-06-06 11:13:25 -07:00
Jun Wu
e8d0a21746 repo: add storage_format API
Summary: This can simplify logic that checks a bunch of repo requirements.

Reviewed By: zzl0

Differential Revision: D45936978

fbshipit-source-id: eec8ca0035642bf2324782b7fb7e97cb740cc02d
2023-06-06 11:13:25 -07:00
Mateusz Kwapich
28c9cdda53 add make unlink command support more blobstores
Summary: We need that for optimizing our storage.

Reviewed By: RajivTS

Differential Revision: D46362446

fbshipit-source-id: d81973cd05cffdc78ad84da867fa4791efea877c
2023-06-06 08:32:15 -07:00
Open Source Bot
d658a7466e Updating submodules
Summary:
GitHub commits:

34368ea165

Reviewed By: jailby

fbshipit-source-id: fa007c01673168102de4a1e9e85149a0beba1b31
2023-06-06 08:24:14 -07:00
Alex Coleman
62d2733488 Allow collapsing file changes (#630)
Summary:
Allow collapsing file changes

Currently there is no way to mark files as viewed, or collapse large ones of no interest (especially generated files). This is pretty painful when you want to go back forth between several files.

This adds a chevron (same as used in the StatusChecks card) that can be clicked to toggle collapsing, matching github's behavior.

![Screen Shot 2023-05-25 at 1 28 20 PM](https://github.com/facebook/sapling/assets/77301670/d52c1af6-3ad3-4e0a-8a0f-a3e10c45e07f)

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

Test Plan:
Tested manually:

| Before | After |
|--|
| https://pxl.cl/2KDNT | https://pxl.cl/2KDP0 |

Also checked that ISL was not affected by these changes

Reviewed By: muirdm

Differential Revision: D46204666

Pulled By: sggutier

fbshipit-source-id: 2173ce18619b09cb7a5d3640a6263e5f8b489d86
2023-06-06 05:07:03 -07:00
Open Source Bot
1ade1de587 Updating submodules
Summary:
GitHub commits:

5b6767c931
aefc8af67c

Reviewed By: jailby

fbshipit-source-id: 356fd2c3bc37a090246abf96626c5cad073737ab
2023-06-06 03:07:19 -07:00
Rajiv Sharma
17c0fe0da2 Mirgrate away from BlobRepo in StatisticsCollector tool
Summary: As in title. Once `BlobRepo` has been removed from this tool, I will also migrate it to the new `Mononoke Admin`

Reviewed By: mitrandir77

Differential Revision: D46444744

fbshipit-source-id: 059623d32d608f852254f16f811bcaf4e6bf3b4a
2023-06-06 02:48:35 -07:00
Open Source Bot
d70ebb4d21 Updating submodules
Summary:
GitHub commits:

8374d72b1e
0566e5eb10
1b7cd10340
b4657f8c5e
e9d7e3e041

Reviewed By: jailby

fbshipit-source-id: 8efc2c8397be8c965342a903f0e6a60a428ec4c2
2023-06-06 02:11:34 -07:00
Open Source Bot
40ac88066a Updating submodules
Summary:
GitHub commits:

ff7a464ed8
0f63c60870
29c71dc50d
90e6f834d8

Reviewed By: jailby

fbshipit-source-id: c192bc110800fa9a80e8bad7608a8c21a46fd9f8
2023-06-06 01:02:50 -07:00
Jeremy Fitzhardinge
86c075fca5 third-party/rust: update to text_placeholder 0.5
Summary: This includes PR 7 so drops the patch.

Reviewed By: zertosh

Differential Revision: D46451758

fbshipit-source-id: 5df8ccbfa610eab470744e28b5bffe411a983996
2023-06-06 00:44:17 -07:00
Open Source Bot
61de7c9097 Updating submodules
Summary:
GitHub commits:

a7977df5cf
2af2dc26e8
a0e766e557
93e365ba52
5127680a7d

Reviewed By: jailby

fbshipit-source-id: 79b919b65f49d51719ea1a99342fa6aa8646e9b9
2023-06-05 23:51:44 -07:00
Barys Skarabahaty
0a29c16672 Remove default ctor from BlobMetadata
Summary: Removing the previous default ctor to ensure that we always compute and pass blake3.

Reviewed By: chadaustin

Differential Revision: D46268716

fbshipit-source-id: d9bfbc7bfd07b61dbb2e915c3fe72d7526d919e1
2023-06-05 23:41:35 -07:00
Barys Skarabahaty
8099af29e0 Add getBlake3 method to eden service
Summary: Adding a method to retrieve blake3 hash for a list of files.

Reviewed By: chadaustin

Differential Revision: D46268718

fbshipit-source-id: 59cb3d25a1d059a7e9b6a4da784a820945ffbd32
2023-06-05 23:41:35 -07:00
Barys Skarabahaty
7dba15317f Expose blake3 via file attributes
Summary: Expose blake3 via file attributes and changing some integration tests accordingly. Added blake3_sum so that it could be used to verify blake3 hashes and updated the tests to work with blake3.

Reviewed By: chadaustin

Differential Revision: D46307686

fbshipit-source-id: 6f2a4e8e25757862ef17d56f92b90a95c7f5a474
2023-06-05 23:41:35 -07:00
Barys Skarabahaty
25b673f8d0 Integrate with virtualInode
Summary: Integrating blake3 with virtual inode.

Reviewed By: chadaustin

Differential Revision: D46268717

fbshipit-source-id: c513a71e81691c43b0eada26aa5f1325a79db07b
2023-06-05 23:41:35 -07:00
Barys Skarabahaty
fd3ab81bd3 Add blake3_sum
Summary: This utility binary could be used from the integration tests to compute blake3 hashes as it is easier to have it than adding the python pypi package with native dependencies.

Reviewed By: chadaustin

Differential Revision: D46307685

fbshipit-source-id: 1c48c689312cd9a04a19a62ad02ae3e9185041e5
2023-06-05 23:41:35 -07:00
Barys Skarabahaty
d6dd01b37a Make LocalCachedBackingStore being able to compute blake3
Summary: If backing store doesn't provide a blake3 hash then we should be able to compute and cache it on demand.

Reviewed By: chadaustin

Differential Revision: D46316187

fbshipit-source-id: 9b77368ac5bb351d0edd80274b280692f8e1f774
2023-06-05 23:41:35 -07:00
Barys Skarabahaty
4fca53249d ThriftUtil to support blake3
Summary: Adding some util functions to ThriftUtil to support blake3

Reviewed By: chadaustin

Differential Revision: D46268709

fbshipit-source-id: 1bc7b7b02ecb121e10e4b15036aa645466e7f762
2023-06-05 23:41:35 -07:00
Barys Skarabahaty
6dc04add37 Integrate with TreeEntry and stores
Summary:
Adding blake3 support into TreeEntry and backing stores.

Note: Http and RE CAS stores don't provide blake3 hash so far. While it would be pretty easy to add support for RE, not sure how hard it would be for the http store.

Reviewed By: chadaustin

Differential Revision: D46268715

fbshipit-source-id: db66e63fe0348eb582a8050f22cdc0ff720ccf85
2023-06-05 23:41:35 -07:00
Barys Skarabahaty
087566da69 Expose blake3 via aux and tree structures
Summary: Exposing blake3 from hg to eden

Reviewed By: chadaustin

Differential Revision: D46268710

fbshipit-source-id: 5f34b5f9586cc8c9507cc987378dc172959b4079
2023-06-05 23:41:35 -07:00
Barys Skarabahaty
32a9f5eac5 Adding blake3 support
Summary:
Adding blake3 into the `Entry` and `Info` objects to make it possible to retrieve blake3 hashes.

The FileNode part will be integrated in the next diff

Reviewed By: chadaustin

Differential Revision: D46268719

fbshipit-source-id: b787b583e5abb3ed306fd1870f96bbdbc9fc0711
2023-06-05 23:41:35 -07:00
Barys Skarabahaty
c663f1d624 Add blake3 support to FileHash utils
Summary: Adding blake3 support to the FileHash util that is used to compute hashes on Windows.

Reviewed By: chadaustin

Differential Revision: D46268714

fbshipit-source-id: cdca3dced494b1f37841121df09351acfdd6c745
2023-06-05 23:41:35 -07:00
Barys Skarabahaty
66dee790bd Make it easier to use blake3
Summary: Frequently we will be operating with the blake3 key that is represented as `std::optional` so making it is easier to initialize blake3 appropriately.

Reviewed By: chadaustin

Differential Revision: D46268711

fbshipit-source-id: 2b9882683e79de2325d23353a4ca7260f3853f47
2023-06-05 23:41:35 -07:00
Barys Skarabahaty
6cbc51fa1c Add Blake3 support to ObjectStore
Summary: Adding blake3 support to the Object store.

Reviewed By: chadaustin

Differential Revision: D44503947

fbshipit-source-id: 5112856576375a6fc0e697fa022506406844700a
2023-06-05 23:41:35 -07:00
Barys Skarabahaty
3ae264c71c Add blake3 support to Serialized blob metadata
Summary:
Adding blake3 support to SerializedBlobMetadata.

* The serialized data is stored as:
   * - version (1 byte, big endian)
   * - blob_size (up to 10 bytes, big endian)
   * - used_hashes (1 byte, big-endian)
   * - hashes stored in order of their type values e.g. from less significant
   to more significant
   * - hash (N bytes)
   ...
   * - hash (M bytes)

Reviewed By: chadaustin

Differential Revision: D44500908

fbshipit-source-id: d64081db8591f85be5cdf3fd98ff9839c028d5fb
2023-06-05 23:41:35 -07:00
Barys Skarabahaty
306c59197a Add blake3 to blob metadata
Summary: Adding blake3 to the blob metadata

Reviewed By: chadaustin

Differential Revision: D44500745

fbshipit-source-id: 41809051b1d45b1512427f5fa830af3a9941148a
2023-06-05 23:41:35 -07:00
Open Source Bot
f807cc47b4 Updating submodules
Summary:
GitHub commits:

954e688beb

Reviewed By: jailby

fbshipit-source-id: b4f7102e6cd00faf9985f246e0d92c092c29ce02
2023-06-05 22:45:17 -07:00
Open Source Bot
02ecc5329f Updating submodules
Summary:
GitHub commits:

a72e3abe80
a5253ccd3e
ee90667abb
b0e56510ff
1d720922f5

Reviewed By: jailby

fbshipit-source-id: 213831bac8baf2c3a98f5d2885b107fc5e1ac02b
2023-06-05 20:29:24 -07:00
Muir Manders
716f8162d4 fix test-rename-merge2.t
Summary: Byte offset in error depends on environment.

Reviewed By: sggutier

Differential Revision: D46468819

fbshipit-source-id: 971f0655d88a9b76f1250e87d85d97a7d5be8828
2023-06-05 20:23:59 -07:00
Open Source Bot
d4a1cd20d8 Updating submodules
Summary:
GitHub commits:

e608509a73
5d3813810f
2501ac7ee8
b553ca41da

Reviewed By: jailby

fbshipit-source-id: 461fbc0bbbc3b14266d19d5b3fc8c39383b259ee
2023-06-05 19:24:35 -07:00
Zhaolong Zhu
0ca377ce38 revset: add '-' for old working copy parent
Summary: Use `-` for old working copy parent, so we can easily go back to the previous working copy parent with `hg go -`. This is similar to `cd -` to go back to the previous folder.

Reviewed By: quark-zju

Differential Revision: D46368217

fbshipit-source-id: ab51992f8dde66a7535ba673892bbb6c0f01ecec
2023-06-05 18:47:04 -07:00
Open Source Bot
323afc0560 Updating submodules
Summary:
GitHub commits:

80af37930b
0accb82d47

Reviewed By: jailby

fbshipit-source-id: 990cdb336e62d897be18d8c6b6bbc1c3b8986e19
2023-06-05 18:32:27 -07:00
Open Source Bot
1905fa3c48 Updating submodules
Summary:
GitHub commits:

b20b5142ba
29a09ec862
633c738a98

Reviewed By: jailby

fbshipit-source-id: 2c19abd2ee4b3070d4613ba61d7f33e8a5fd9cb4
2023-06-05 17:12:59 -07:00
Shayne Fletcher
906e591ec8 codemods to remove lazy static 1/N
Summary:
first in a set of diffs with the intent of removing `lazy_static!` from fbcode.

this diff changes `std::sync::Mutex` and `parking_lot::Mutex` to plain `static` initializations where possible.

Reviewed By: zertosh

Differential Revision: D46335784

fbshipit-source-id: 105848f38dcb8083be77a4ad4db267058081fe53
2023-06-05 17:01:50 -07:00
Open Source Bot
e0d55a8f2c Updating submodules
Summary:
GitHub commits:

9c9ea9ea5a
71cb4233cd
8c30213e48
8744125013

Reviewed By: jailby

fbshipit-source-id: 42a73d93a4a86d6a00ccd53776ac64e61418ce45
2023-06-05 15:40:46 -07:00
Open Source Bot
a1fbab9ceb Updating submodules
Summary:
GitHub commits:

ff48993bac
d2df3a21f2
4aa52d89cf
e7d84865a5
a243b2ed33

Reviewed By: jailby

fbshipit-source-id: 318abe414708a2843d162df71d99134df7737c67
2023-06-05 12:12:47 -07:00
Michael Christensen
1ffac63e6d debugnamecomplete: show 9 digits for autocompleted rev numbers
Summary: Show 9 characters for autocompleted revs, to match rev numbers shown in e.g. `hg sl`. This makes it a little easier to verify the rev that was autocompleted for you matches the one you were looking at in the smart log (i.e. if you're looking at the end of the rev rather than the beginning).

Reviewed By: zzl0

Differential Revision: D46398818

fbshipit-source-id: 70f19d60df7aa85371e1c1838b362b621da5b493
2023-06-05 11:12:48 -07:00
Saul Gutierrez
9b36c19d6d delete unused shutil import
Summary: This library doesn't seem to be used anymore in that file, so seems to be safe to delete it

Reviewed By: zzl0

Differential Revision: D46433066

fbshipit-source-id: 7c522b99048130f2ecd996e6ba901b5e5cccad2b
2023-06-05 10:54:44 -07:00
Open Source Bot
e2e5588579 Updating submodules
Summary:
GitHub commits:

b3e2dd4bde
8136c799a0
2a5a53bd07
f788526324
38e041f987

Reviewed By: jailby

fbshipit-source-id: a801eedbd8b283e72d5542e7f75a1e5238c2794e
2023-06-05 10:00:33 -07:00
Open Source Bot
a0b4e0f5a4 Updating submodules
Summary:
GitHub commits:

b2d99bd699
6b150aa224

Reviewed By: bigfootjon

fbshipit-source-id: f079fe3c87d4eba658366349a45d589763081a7b
2023-06-05 08:39:46 -07:00
Andres Suarez
bef7ae79d2 Update openssl from 0.10.35 to 10.10.54
Reviewed By: dtolnay

Differential Revision: D46432065

fbshipit-source-id: 6a6c20e8b82accd9fe0dd4fc04d1d85a30dfa3e5
2023-06-05 06:35:30 -07:00
Youssef Ibrahim
40e9993707 delete reachabilityindex directory
Summary: saintelmosfire

Reviewed By: liubov-dmitrieva

Differential Revision: D46109912

fbshipit-source-id: 2c2f6a65164471b5fc7c1668e4577fb39ef58091
2023-06-04 23:27:57 -07:00
Youssef Ibrahim
448eafe8fb commit_graph: delete RangeNodeStream
Summary:
saintelmosfire
Will only land this after D45356044 is landed and tested.

Differential Revision: D45356043

fbshipit-source-id: 068aa45e1edd954b8ba5dc3355f9392ab06419b5
2023-06-04 23:27:57 -07:00
Youssef Ibrahim
1960074205 delete DifferenceOfUnionsOfAncestorsNodeStream
Summary: :)

Reviewed By: Croohand

Differential Revision: D45607812

fbshipit-source-id: ff65cc7850d2d538d014a414e43ef54b51d265e2
2023-06-04 23:27:57 -07:00
Youssef Ibrahim
8a8519f5d2 remove DifferenceOfUnionsOfAncestorsNodeStream from getbundle_response
Summary: :)

Reviewed By: liubov-dmitrieva

Differential Revision: D45607811

fbshipit-source-id: 2f6fbe6975b1ba3592a80268f41cbe2181c11c13
2023-06-04 23:27:57 -07:00