A VC
backend for Sapling (sl).
vc-sapling provides the generic Emacs VC commands for native Sapling
repositories. Sapling-specific smartlog, stack, and working-copy workflows
are provided by the separate sapling
package.
- Emacs 26.1 or later.
- Sapling
slonexec-path. - The
saplingEmacs package.
Install the sapling package first, then install vc-sapling:
(require 'sapling)
(require 'vc-sapling)
(add-to-list 'vc-handled-backends 'Sapling)The VC backend recognizes native Sapling repositories (identified by their
.sl directory). Git-backed Sapling working copies are left to vc-git,
which is already a good fit for them.
C-x v d/vc-dir— directory statusC-x v =/vc-diff— diffs between working copy and revisionsC-x v l/vc-print-log— commit historyC-x v v/vc-next-action— commit changesC-x v g/vc-annotate— per-line revision annotationsC-x v u/vc-revert— revert working-copy changesC-x v b/vc-retrieve-tag— check out Sapling bookmarksC-x v s/vc-create-tag— create Sapling bookmarks
vc-sapling-global-switches— extra switches passed to everyslcommand run by VC.vc-sapling-diff-switches— switches forsl diffunder VC.vc-sapling-log-short-format/vc-sapling-log-format— templates used for the short and long VC log buffers.
Thanks to feedback and comment by Russel Mok, Philip Kaluđerčić, Stéphane Marks. Thanks to my wife, Sophia Li for always supporting me.