Commit Graph

78810 Commits

Author SHA1 Message Date
Durham Goode
74e590f9e4 tests: fix tests broken by template change
Summary:
My recent addition of the sl_default built-in style broke a couple
tests.

Reviewed By: bolinfest, quark-zju

Differential Revision: D41315497

fbshipit-source-id: f67ae227a230128d66d31ef38fdb3963c7b33862
2022-11-15 12:06:51 -08:00
Jun Wu
b58cf8f463 website: internals/indexedlog
Summary:
Describe the indexedlog with background and high-level ideas. Hopefully it can
be interesting to certain folks.

Reviewed By: muirdm, akushner

Differential Revision: D41287715

fbshipit-source-id: c438fdbe88a984e1867b0cca94bbf45f4e195efe
2022-11-15 12:06:45 -08:00
Open Source Bot
34be7da0e1 Updating submodules
Summary:
GitHub commits:

2097f7aa33
3e52b4814e
b55e70357c
6f9012f553
b56b35c81b
d17818f2e2
93c3990720
64ebc87f03

Reviewed By: jailby

fbshipit-source-id: 01a91b1b150d9cfa3bd984f488fdce526766d960
2022-11-15 12:01:50 -08:00
Durham Goode
e62aa29225 templates: set open source log template
Summary:
Internally we get this from the facebook.style file. Let's just do it
via configs for opensource usage.

Reviewed By: muirdm, sggutier

Differential Revision: D41313140

fbshipit-source-id: fa528b2309cfc64d6f0e86552bb789d238d7c8dd
2022-11-15 11:26:14 -08:00
Jun Wu
e039492a69 website: edit git-cheat-sheet
Summary:
Mention how to push to a branch, add a remote, and pull from a non-default
remote. Correct inaccurate git commands in clone/push/pull section.

Change "Foo Bar" to "Foo bar" based on style guide.

Reviewed By: DurhamG

Differential Revision: D41310894

fbshipit-source-id: 977f96b66499fd7d1a125d41a81a9d5e264a5cd9
2022-11-15 11:02:57 -08:00
Jun Wu
088f5efc9b website: use Foo bar title
Summary:
Per style guide [1].

Ran script in docs/ except for docs/commands/:

  import glob
  import re

  capwords = set("ReviewStack Code ISL Watchman Git Sapling GitHub Mercurial Apple Intel Windows EdenFS I Python Unicode".split())

  for path in glob.glob('**/*.md', recursive=True):
      with open(path, 'rb') as f:
          content = f.read().decode()
          newlines = []
          skip = False
          for line in content.splitlines():
              if line.startswith('```'):
                  skip = not skip
              if line.startswith('#') and not skip:
                  words = line.split(' ')
                  newwords = words[:2]
                  for word in words[2:]:
                      if re.sub('[.()]', '', word) not in capwords and word[1:] == word[1:].lower() and not newwords[-1].endswith("."):
                          # change to lowercase
                          word = word[:1].lower() + word[1:]
                      newwords.append(word)
                  line = ' '.join(newwords)
              newlines.append(line)
          newcontent = '\n'.join(newlines) + "\n"
      if newcontent != content:
          print(f'editing {path}')
          with open(path, 'wb') as f:
              f.write(newcontent.encode())

Manually updated two places using `A/B` like `Files/Trees` in scale/axes.

[1]: https://developers.google.com/style/headings

Reviewed By: sggutier

Differential Revision: D41312633

fbshipit-source-id: 9b45df8b120765d1875c3782e6f9d6e5ddb97af0
2022-11-15 11:02:57 -08:00
Open Source Bot
e56bdaaced Updating submodules
Summary:
GitHub commits:

860453b8bf

Reviewed By: jailby

fbshipit-source-id: fe6b765b7d202edcba8213ba361d81b4dafed851
2022-11-15 11:01:44 -08:00
Evan Krause
1ec97ebdc9 Add note to install sapling to use vscode extension
Summary:
The  vscode extension does not bundle sapling, thus you must also install sapling with the normal instructions in order to use the extension.

We should add this to the website docs, as well as the README for the VS Code extension (which appears inside the vscode marketplace)

Reviewed By: DurhamG

Differential Revision: D41309780

fbshipit-source-id: 4caad13f5c478252324e6cd3874ef25c0bd735d8
2022-11-15 10:49:31 -08:00
Mark Juggurnauth-Thomas
aaaa8275d7 docs: minor fixes and rewording
Summary: Fix a few typos and reword a few sections to make them flow better.

Reviewed By: akushner

Differential Revision: D41294506

fbshipit-source-id: eeabfb357de23aef896445f4a1056c0e10618c7b
2022-11-15 10:47:29 -08:00
Mark Juggurnauth-Thomas
d926c3089b docs: add visibility and mutation documentation
Summary: Add documenation for Sapling's visibility and mutation tracking.

Reviewed By: quark-zju

Differential Revision: D41292893

fbshipit-source-id: f14942bcaebb8e9875422d25b22196740e259f7e
2022-11-15 10:47:29 -08:00
Open Source Bot
2b195f228a Updating submodules
Summary:
GitHub commits:

186df17188
ecb728508b
359b7af1fb

Reviewed By: jailby

fbshipit-source-id: 3c6f48f836c16529c4b588fbfc4a9b422f4c8466
2022-11-15 10:19:04 -08:00
Shish Girling
89d7a8aac3 support ssh:// format for SSH repo URLs
Summary:
I'm not sure where this format came from, but it's the format that all my personal repos use - git and sapling both work fine with it in _nearly_ all cases, but `sl pr` doesn't like it

#testBounce
#lintBounce

Reviewed By: quark-zju

Differential Revision: D41304145

fbshipit-source-id: 5d58d351645d07841c2531d5a1f2a2234fe68d20
2022-11-15 09:51:02 -08:00
Evan Krause
39e8a378ab Move facebook README
Reviewed By: markbt

Differential Revision: D41309150

fbshipit-source-id: ba46fc535df70946b4fd2540a575af9a671cb938
2022-11-15 09:42:17 -08:00
Zhaolong Zhu
2faeafc4d3 website: add doc for 'sl'
Summary: as title

Reviewed By: DurhamG

Differential Revision: D41306277

fbshipit-source-id: d04084d51be27eef8fbed86972fca08dcabce5a9
2022-11-15 09:40:01 -08:00
Evan Krause
844a935e38 Show empty state when repository not found or command invalid
Reviewed By: bolinfest

Differential Revision: D41292112

fbshipit-source-id: 07d3bd7d77e0309e83666136ab3a962a9dd3a3a9
2022-11-15 09:31:50 -08:00
Open Source Bot
cf73591087 Updating submodules
Summary:
GitHub commits:

71b026858a
025b2cdfb7
b644baa1eb

Reviewed By: jailby

fbshipit-source-id: 943fd4d75f819c5b2f23025ae9ebf4c20c933404
2022-11-15 09:31:39 -08:00
Michael Bolin
afc5ec4556 cleaned up READMEs
Reviewed By: DurhamG, quark-zju, MichaelCuevas

Differential Revision: D41309863

fbshipit-source-id: cae08a46d30279d5c9e5f2ea19127c32581b97b0
2022-11-15 09:31:00 -08:00
Zhaolong Zhu
f1bce925a3 website: add doc for 'restack'
Summary: as title

Reviewed By: DurhamG

Differential Revision: D41306278

fbshipit-source-id: 356f1599da133a32c2baf372ae91633dd63c1e8d
2022-11-15 09:16:09 -08:00
Durham Goode
f2c5fdb769 website: downplay Mononoke and EdenFS in readme.md
Summary:
The current Github main page gives equal footing to Mononoke and
EdenFS, even though they are not ready for open source usage yet. Let's make the
lack of support explicit for EdenFS (it already was for Mononoke), and shrink
the headers to downplay their current footing with respect to the Sapling CLI.

Reviewed By: quark-zju

Differential Revision: D41309064

fbshipit-source-id: 7a38edd926571dbff5104f1bbe65bf5a7cfa500e
2022-11-15 09:02:28 -08:00
Jun Wu
fa63ff539a website: internals/linelog
Summary:
Describe the linelog stuff. It might be interesting to other source control
folks.

Reviewed By: muirdm

Differential Revision: D41279087

fbshipit-source-id: edca1fd7722cae32fdcb4908fab3e6c7d474fc19
2022-11-15 08:59:02 -08:00
Jun Wu
d98a0a9077 website: internals/zstdelta
Summary:
Describe the zstdelta algorithm. It might be interesting to other source
control folks.

Reviewed By: muirdm

Differential Revision: D41275018

fbshipit-source-id: 8e44c3e23716c9130eaaedf751575d37f81e7696
2022-11-15 08:45:09 -08:00
Mateusz Kwapich
dd98b87254 warn about macOS file limit
Summary: The default limit on my macbook air is 256 - that's not enough for clones of larger repos to work.

Reviewed By: DurhamG

Differential Revision: D41308172

fbshipit-source-id: 27972c9f8d66d5236b69f5e65f66eb2e472f52b3
2022-11-15 08:37:25 -08:00
Mateusz Kwapich
34470671e2 goto: fix goto command help
Summary: remove mention of checkout, include goto in the main help command

Reviewed By: DurhamG

Differential Revision: D41307245

fbshipit-source-id: dda8ee05d35b1aa2bea6429432bbfe859fe60504
2022-11-15 08:05:54 -08:00
Durham Goode
c08291556a website: update github main readme
Summary:
This updates the main readme in a few ways:

- Renames EdenSCM to Sapling
- Drops references to building Mononoke and EdenFS.
- Adds some extra text to say Mononoke and EdenFS are not publicly supported
  yet.
- Adds some links to the main Sapling website and to the ISL documentation.

Reviewed By: quark-zju

Differential Revision: D41275627

fbshipit-source-id: de72ad2025ee5d24a8218586a32c6e70919c6cde
2022-11-15 08:03:19 -08:00
Michael Bolin
74e4f292ae prefer -O to -o when using curl
Summary: Follow-up from D41306411 (ce3095ed47).

Reviewed By: DurhamG

Differential Revision: D41307219

fbshipit-source-id: bcabe12cbbf930d031bc9e8490606f94c2a0a347
2022-11-15 07:57:16 -08:00
Muir Manders
06f447cd2c website: regenerate command docs
Summary: There are a few alias reductions not incorporated yet.

Reviewed By: bolinfest

Differential Revision: D41306456

fbshipit-source-id: f60aa3b020b7d50c871003d7360b2ea116574190
2022-11-15 07:52:09 -08:00
Jun Wu
5c56f080f7 website: minor tweaks of sidebar
Summary:
- Move scale/overview to top in section
- Remove scale/segmented-changelog as it is blank (plan to be an internal page)
- Rename internals/difference-from-hg

Reviewed By: yancouto

Differential Revision: D41306674

fbshipit-source-id: aa9cb2bf853aceaabcaa400e7918cf4725a6c24f
2022-11-15 07:35:36 -08:00
Michael Bolin
ce3095ed47 tighten up installation instructions for macOS
Summary:
Changes:

- specify `--output` when using `curl`
- separate commands into separate blocks and drop `$` for easier copy-and-paste
- add `./` in front of filename so brew knows right away that it is a file and not a formula name

Also updated the release info:

```
./scripts/gen_release_data.py --repo facebook/sapling --out ./src/rawReleaseData.ts
```

Reviewed By: mitrandir77

Differential Revision: D41306411

fbshipit-source-id: 1327d2404f48812c18b844eb5b622acc69eab5e8
2022-11-15 07:21:34 -08:00
Saul Gutierrez
e6054f408c packaging: add gh as a dependency for homebrew formula
Summary: As the title says. We decided to add this in order to make sure `sl web` behaves as expected for most new users.

Reviewed By: quark-zju

Differential Revision: D41293866

fbshipit-source-id: fd07cb930ce95422c7b22c745c74348e647571c8
2022-11-15 06:43:44 -08:00
Yan Soares Couto
eadc779bee Speed up response conversion
Summary:
This speeds up the response conversion by doing all the large->small conversions at the same time. They unnecessarily used to happen serially.

This is fine because at this point everything has been synced. Notice that the `backsync_latest` command before **cannot** be done in parallel with the conversions.

Reviewed By: RajivTS

Differential Revision: D41273248

fbshipit-source-id: ec622256f3a135439adeb49e1f0f67ca9cf18bdc
2022-11-15 06:41:31 -08:00
Yan Soares Couto
a53466255e Fix pushredirection logic when previous bookmark value doesn't map directly to small repo
Summary:
To fix the bug we added a test for in the previous diff, we need to be careful when converting the old bookmark value from the large repo to the small one.

Even though the new bookmark value always exists in the small repo, the previous one doesn't necessarily do. It might have been a large-only change. So when we map the old bookmark value back, we should actually get the last small commit that had exactly the same changes in the small repo.

Notice that, even before, the push worked, but the command failed. Now both succeed.

Differential Revision: D41270747

fbshipit-source-id: ee19b73ae414467734b655f351840e58cdd97560
2022-11-15 06:41:31 -08:00
Facebook Community Bot
79efe98a13 Re-sync with internal repository 2022-11-15 06:39:33 -08:00
Jun Wu
882fdeebee doc: scale/overview
Summary: List the scalability work we add over time.

Reviewed By: DurhamG

Differential Revision: D41189125

fbshipit-source-id: bf0bbb57fded6608e0b70c402fd2449aee5d6dd3
2022-11-15 06:30:03 -08:00
generatedunixname89002005307016
5df113209d Add annotations to eden/scm/edenscm/lock.py
Reviewed By: jordanwebster

Differential Revision: D41303371

fbshipit-source-id: 3d74869b2db429a23278cce3e8e0fde572ff6bd8
2022-11-15 05:42:26 -08:00
generatedunixname89002005307016
6215eee700 Add annotations to eden/scm/edenscm/lock.py
Reviewed By: yancouto

Differential Revision: D41265077

fbshipit-source-id: 0d639b8bfc8b89c883f2a17f1948031ccf1f38ff
2022-11-15 03:34:50 -08:00
generatedunixname89002005367269
33019137ad Daily arc lint --take BLACK
Reviewed By: ivanmurashko

Differential Revision: D41300540

fbshipit-source-id: 9c80346b4977552df2a88da860d8143bd44b3653
2022-11-15 01:31:41 -08:00
Facebook Community Bot
5076656c62 Re-sync with internal repository 2022-11-15 00:48:09 -08:00
Michael Bolin
c410b86631 add more detailed pull request body
Reviewed By: akushner

Differential Revision: D41297757

fbshipit-source-id: 2808a1af8c3116180e60bbd9527541fd8482752c
2022-11-15 00:17:42 -08:00
Michael Bolin
ad1cbb142f support both log and log|history]
Reviewed By: MichaelCuevas

Differential Revision: D41298269

fbshipit-source-id: 41cd2f1eedaa232fef5f9b36ddcaa6b0348ecddb
2022-11-15 00:17:42 -08:00
Open Source Bot
d20daa1255 Updating submodules
Summary:
GitHub commits:

8e0a13a1bd
bed5c11894
be1a82c7e0
97fd5ba2ba
1bf7db87c9

Reviewed By: jailby

fbshipit-source-id: 620a36e4ec980bbf3f7741751653f0ebbc247bcf
2022-11-14 23:50:33 -08:00
Open Source Bot
e569d5d3b9 Updating submodules
Summary:
GitHub commits:

7a35a42308
db860e0fd3

Reviewed By: jailby

fbshipit-source-id: 105ce969ffdc13bcbfd1ea5fc21bd7319ab3cb4a
2022-11-14 23:08:07 -08:00
Muir Manders
736e942aeb update various command aliases and synopses
Summary:
- move silly aliases to the legacy list
- simplify some synopses

I left particular flags in the synopsis where I felt the flag was fundamental to the command, or the command had very few flags. Other than that, it doesn't really help much to see a bunch of single letter flags since you have to refer to the help text to see what they do anyway. (Also, the synopses are hand maintained, so they get out of sync easily).

Reviewed By: DurhamG

Differential Revision: D41292832

fbshipit-source-id: e95e70d7d2641bb49ee25683b6ad614d5ef08ae4
2022-11-14 22:21:54 -08:00
Muir Manders
551df960c9 bisect: update docstring
Summary:
- minimize aliases
- simplify synopsis
- tweak wording and formatting

Reviewed By: DurhamG

Differential Revision: D41292833

fbshipit-source-id: b77814c7188e892eea4b0f65ce3656ef0656da42
2022-11-14 22:21:54 -08:00
Muir Manders
c4e9d7e482 annotate: show more info by default in opensource build
Summary: Add a config setting so we show user and date by default in open source build. I wanted to show the short date, but that requires also setting --quiet, so I added a new hidden flag "short-date" that the config uses to enable this behavior.

Reviewed By: bolinfest

Differential Revision: D41288375

fbshipit-source-id: a42cc3d9951a4363ade18c89b6b8b991d631dca5
2022-11-14 22:21:54 -08:00
Durham Goode
b22b3776f9 git: prevent crash during git clone
Summary:
If the git clone failed, it would throw an exception and try to clean
up. If there was no destination directory provided, the cleanup code would call
shutil(None) which would crash.

Additionally, if the directory already existed, an exception would be thrown and
the shutil would try to delete the existing directory. Which would've been data
loss. Luckily the earlier bug mentioned above prevented that.

Fix both of these by moving the destpath calculation and exists check to be
outside the try/catch.

Reviewed By: MichaelCuevas

Differential Revision: D41296351

fbshipit-source-id: dae00a8e09fa72cae8fd31d53fda4d88fefa28bc
2022-11-14 21:00:41 -08:00
Durham Goode
b4d6c39a8d smartlog: fix draft hash template
Summary:
I added quotes at the last minute when I fixed this, but that broke it.
Drop the quotes.

Reviewed By: MichaelCuevas

Differential Revision: D41296319

fbshipit-source-id: 7a8222b964371486e50a0d34586559aa5bc815d7
2022-11-14 21:00:41 -08:00
Mark Juggurnauth-Thomas
365826f4e1 dag/render: fix clippy lints
Summary: Prefer `.push('c')` over `.push_str("c")` for single-character strings.

Reviewed By: quark-zju

Differential Revision: D41292174

fbshipit-source-id: a9c58f3fcb7cdcfe10b908b39af36922e71fb54f
2022-11-14 19:59:35 -08:00
Mark Juggurnauth-Thomas
746ff5d22c dag/render: include parent/ancestor information on other edge types
Summary:
Currently, the difference between parent and ancestor edges is only shown for the vertical component of a graph renderer cell.  This is incomplete: the horizontal or corner components may also be for either a parent or ancestor edge.

Expand the data model to include this information for all edges.  The ascii and box drawing renderers' outputs remain unchanged, but the ascii-large renderer is improved to show the difference between the two.  This makes the "ancestor" lines more clearly dotted.

Reviewed By: quark-zju

Differential Revision: D41286950

fbshipit-source-id: cb88c913926f10b2f971ee027d99599e13a012ab
2022-11-14 19:59:35 -08:00
Muir Manders
c9a68de4d6 annotate: udpate docstring
Summary:
- minimize aliases
- tweak formatting and wording
- simplify synopsis

Reviewed By: bolinfest

Differential Revision: D41288376

fbshipit-source-id: b8caedec869fe8155c457ee27c1aced03a5caf70
2022-11-14 19:39:34 -08:00
Muir Manders
0ceae531c1 update: make "goto" the primary name in sapling
Summary:
Tweak things so "goto" is the primary command name. I added a "legacyname" command option that will switch the primary name if sapling is being invoked under the hg identity.

I did a minimal effort cleanup of the Rust<->Python command table interaction. Now Rust keys commands in the command table only by primary command name. The Python registrar looks for such a Rust entry and renames it within the command table to use whatever command name is calculated in Python. This avoids having to make things match exactly between Rust and Python.

Reviewed By: bolinfest

Differential Revision: D41280305

fbshipit-source-id: 7c921bdf90013504318651b9def33d4321757e68
2022-11-14 19:39:34 -08:00