ok/jj
1
0
Fork 0
forked from mirrors/jj

cli: remove accidental -r argument from jj move

This commit is contained in:
Martin von Zweigbergk 2022-01-27 22:26:46 -08:00
parent 9c561429c0
commit 94dbcf3b7e

View file

@ -1062,7 +1062,6 @@ With the `--from` and/or `--to` options, shows the difference from/to the given
destination. The changes will be removed from the source. If that means that the \
source is now empty compared to its parent, it will be abandoned.",
)
.arg(rev_arg())
.arg(
Arg::new("from")
.long("from")
@ -2824,8 +2823,6 @@ fn cmd_new(ui: &mut Ui, command: &CommandHelper, args: &ArgMatches) -> Result<()
fn cmd_move(ui: &mut Ui, command: &CommandHelper, args: &ArgMatches) -> Result<(), CommandError> {
let mut workspace_command = command.workspace_helper(ui)?;
let commit = workspace_command.resolve_revision_arg(ui, args)?;
workspace_command.check_rewriteable(&commit)?;
let source = workspace_command.resolve_single_rev(ui, args.value_of("from").unwrap())?;
let mut destination = workspace_command.resolve_single_rev(ui, args.value_of("to").unwrap())?;
if source.id() == destination.id() {