···36363737* `core.watchman.register_snapshot_trigger` has been renamed to `core.watchman.register-snapshot-trigger` for consistency with other configuration options.
38383939+* `jj backout` is deprecated in favor of `jj revert`.
4040+3941### New features
40424143* `jj sign` will automatically use the gpg key associated with the author's email
+10
cli/src/commands/backout.rs
···3131/// The description of the new revisions can be customized with the
3232/// `templates.backout_description` config variable.
3333#[derive(clap::Args, Clone, Debug)]
3434+#[command(hide = true)]
3435pub(crate) struct BackoutArgs {
3536 /// The revision(s) to apply the reverse of
3637 #[arg(
···5859 command: &CommandHelper,
5960 args: &BackoutArgs,
6061) -> Result<(), CommandError> {
6262+ writeln!(
6363+ ui.warning_default(),
6464+ "`jj backout` is deprecated; use `jj revert` instead"
6565+ )?;
6666+ writeln!(
6767+ ui.warning_default(),
6868+ "`jj backout` will be removed in a future version, and this will be a hard error"
6969+ )?;
7070+6171 let mut workspace_command = command.workspace_helper(ui)?;
6272 let to_back_out: Vec<_> = workspace_command
6373 .parse_union_revsets(ui, &args.revisions)?
···1313* [`jj`↴](#jj)
1414* [`jj abandon`↴](#jj-abandon)
1515* [`jj absorb`↴](#jj-absorb)
1616-* [`jj backout`↴](#jj-backout)
1716* [`jj bookmark`↴](#jj-bookmark)
1817* [`jj bookmark create`↴](#jj-bookmark-create)
1918* [`jj bookmark delete`↴](#jj-bookmark-delete)
···126125127126* `abandon` — Abandon a revision
128127* `absorb` — Move changes from a revision into the stack of mutable revisions
129129-* `backout` — Apply the reverse of given revisions on top of another revision
130128* `bookmark` — Manage bookmarks [default alias: b]
131129* `commit` — Update the description and create a new change on top
132130* `config` — Manage config options
···260258 Only ancestors of the source revision will be considered.
261259262260 Default value: `mutable()`
263263-264264-265265-266266-## `jj backout`
267267-268268-Apply the reverse of given revisions on top of another revision
269269-270270-The description of the new revisions can be customized with the `templates.backout_description` config variable.
271271-272272-**Usage:** `jj backout [OPTIONS]`
273273-274274-###### **Options:**
275275-276276-* `-r`, `--revisions <REVSETS>` — The revision(s) to apply the reverse of
277277-278278- Default value: `@`
279279-* `-d`, `--destination <REVSETS>` — The revision to apply the reverse changes on top of
280280-281281- Default value: `@`
282261283262284263
+24-4
cli/tests/test_backout_command.rs
···38383939 // Backout the commit
4040 let output = work_dir.run_jj(["backout", "-r", "@"]);
4141- insta::assert_snapshot!(output, @"");
4141+ insta::assert_snapshot!(output, @r"
4242+ ------- stderr -------
4343+ Warning: `jj backout` is deprecated; use `jj revert` instead
4444+ Warning: `jj backout` will be removed in a future version, and this will be a hard error
4545+ [EOF]
4646+ ");
4247 insta::assert_snapshot!(get_log_output(&work_dir), @r#"
4348 ○ 6d845ed9fb6a Back out "a"
4449 │
···5661 // Backout the new backed-out commit
5762 work_dir.run_jj(["edit", "@+"]).success();
5863 let output = work_dir.run_jj(["backout", "-r", "@"]);
5959- insta::assert_snapshot!(output, @"");
6464+ insta::assert_snapshot!(output, @r"
6565+ ------- stderr -------
6666+ Warning: `jj backout` is deprecated; use `jj revert` instead
6767+ Warning: `jj backout` will be removed in a future version, and this will be a hard error
6868+ [EOF]
6969+ ");
6070 insta::assert_snapshot!(get_log_output(&work_dir), @r#"
6171 ○ 79555ea9040b Back out "Back out "a""
6272 │
···100110101111 // Backout multiple commits
102112 let output = work_dir.run_jj(["backout", "-r", "b", "-r", "c", "-r", "e"]);
103103- insta::assert_snapshot!(output, @"");
113113+ insta::assert_snapshot!(output, @r"
114114+ ------- stderr -------
115115+ Warning: `jj backout` is deprecated; use `jj revert` instead
116116+ Warning: `jj backout` will be removed in a future version, and this will be a hard error
117117+ [EOF]
118118+ ");
104119 insta::assert_snapshot!(get_log_output(&work_dir), @r#"
105120 ○ 6504c4ded177 Back out "b"
106121 │
···203218204219 // Verify that message of backed out commit follows the template
205220 let output = work_dir.run_jj(["backout", "-r", "a"]);
206206- insta::assert_snapshot!(output, @"");
221221+ insta::assert_snapshot!(output, @r"
222222+ ------- stderr -------
223223+ Warning: `jj backout` is deprecated; use `jj revert` instead
224224+ Warning: `jj backout` will be removed in a future version, and this will be a hard error
225225+ [EOF]
226226+ ");
207227 insta::assert_snapshot!(get_log_output(&work_dir), @r#"
208228 ○ 1db880a5204e Revert commit 2443ea76b0b1 "a"
209229 @ 2443ea76b0b1 a