sl-submit-diff
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSubmit Diff (Sapling + Phabricator)
提交Diff(Sapling + Phabricator)
Submit commits to Phabricator for code review using (Meta).
jf submit<EXTREMELY_IMPORTANT>
Windows Note: Use the full path toto avoid conflicts with PowerShell's built-insl.exealias forsl. </EXTREMELY_IMPORTANT>Set-Location
使用(Meta工具)将提交发送到Phabricator进行代码评审。
jf submit<EXTREMELY_IMPORTANT>
Windows注意事项: 请使用的完整路径,避免与PowerShell内置的sl.exe命令的Set-Location别名冲突。 </EXTREMELY_IMPORTANT>sl
What This Skill Does
技能功能
- If there are uncommitted changes, first run to create a commit
/commit - Submit commits to Phabricator using . Submit for review using DRAFT mode
jf submit --draft - Each commit in the stack becomes a separate Phabricator diff (D12345)
- Commit messages are updated with link
Differential Revision:
- 如果存在未提交的变更,首先运行创建一个提交
/commit - 使用将提交发送到Phabricator,以草稿模式提交供评审
jf submit --draft - 提交栈中的每个提交都会生成独立的Phabricator diff(例如D12345)
- 提交信息会被更新,添加链接
Differential Revision:
Commands to Use
使用命令
- - Check for uncommitted changes
sl status - - Submit commits to Phabricator in DRAFT mode
jf submit --draft - - View changes since last submission
sl diff --since-last-submit
- - 检查未提交的变更
sl status - - 以草稿模式将提交发送到Phabricator
jf submit --draft - - 查看上次提交后的变更内容
sl diff --since-last-submit
Common Operations
常用操作
| Task | Command |
|---|---|
| Submit current commit | |
| Update diff after amend | |
| 任务 | 命令 |
|---|---|
| 提交当前提交 | |
| amend后更新diff | |
Diff Status Values
Diff状态值
- - Awaiting reviewer feedback
Needs Review - - Ready to land
Accepted - - Reviewer requested changes
Needs Revision - - Diff has been landed
Committed - - Diff was closed without landing
Abandoned
- - 等待评审人反馈
Needs Review - - 已通过评审,可合入
Accepted - - 评审人要求修改
Needs Revision - - Diff已合入
Committed - - Diff已关闭,未合入
Abandoned
Stacked Diffs
堆叠Diff
Sapling naturally supports stacked commits. When submitting:
- Each commit gets its own Phabricator diff (D12345, D12346, D12347)
- Diffs are linked with proper dependency relationships
- Reviewers can review each diff independently
Sapling原生支持堆叠提交。提交时:
- 每个提交都会生成独立的Phabricator diff(D12345、D12346、D12347)
- 各Diff之间会建立正确的依赖关系
- 评审人可独立评审每个Diff
Important Notes
重要注意事项
- Unlike GitHub PRs, Phabricator diffs are tied to commits via
Differential Revision: - Use to see what changed since last submission
sl diff --since-last-submit - The ISL (Interactive Smartlog) web UI also supports submitting diffs
- 与GitHub PR不同,Phabricator diff通过字段与提交绑定
Differential Revision: - 使用可查看上次提交后的变更内容
sl diff --since-last-submit - ISL(交互式智能日志)网页UI也支持提交Diff