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
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
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
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
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
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
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
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
Summary:
Describe the linelog stuff. It might be interesting to other source control
folks.
Reviewed By: muirdm
Differential Revision: D41279087
fbshipit-source-id: edca1fd7722cae32fdcb4908fab3e6c7d474fc19
Summary:
Describe the zstdelta algorithm. It might be interesting to other source
control folks.
Reviewed By: muirdm
Differential Revision: D41275018
fbshipit-source-id: 8e44c3e23716c9130eaaedf751575d37f81e7696
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
Summary: remove mention of checkout, include goto in the main help command
Reviewed By: DurhamG
Differential Revision: D41307245
fbshipit-source-id: dda8ee05d35b1aa2bea6429432bbfe859fe60504
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
Summary: There are a few alias reductions not incorporated yet.
Reviewed By: bolinfest
Differential Revision: D41306456
fbshipit-source-id: f60aa3b020b7d50c871003d7360b2ea116574190
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
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
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
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
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
Summary: List the scalability work we add over time.
Reviewed By: DurhamG
Differential Revision: D41189125
fbshipit-source-id: bf0bbb57fded6608e0b70c402fd2449aee5d6dd3
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
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
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
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
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
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