forked from mirrors/jj
parallelize: drop redundant "Nothing changed." case
The rewritten code is already a no-op when there's a single input. I don't think the case is common enough to warrant having a special case for performance reasons either. Also, by not having the special case, `jj parallelize <immutable commit>` fails consistently with the non-singleton case.
This commit is contained in:
parent
89356aebc6
commit
449fc423b8
1 changed files with 0 additions and 5 deletions
|
@ -13,7 +13,6 @@
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::io::Write;
|
|
||||||
|
|
||||||
use indexmap::IndexSet;
|
use indexmap::IndexSet;
|
||||||
use itertools::Itertools;
|
use itertools::Itertools;
|
||||||
|
@ -70,10 +69,6 @@ pub(crate) fn cmd_parallelize(
|
||||||
.parse_union_revsets(&args.revisions)?
|
.parse_union_revsets(&args.revisions)?
|
||||||
.evaluate_to_commits()?
|
.evaluate_to_commits()?
|
||||||
.try_collect()?;
|
.try_collect()?;
|
||||||
if target_commits.len() < 2 {
|
|
||||||
writeln!(ui.status(), "Nothing changed.")?;
|
|
||||||
return Ok(());
|
|
||||||
}
|
|
||||||
workspace_command.check_rewritable(target_commits.iter().ids())?;
|
workspace_command.check_rewritable(target_commits.iter().ids())?;
|
||||||
|
|
||||||
let mut tx = workspace_command.start_transaction();
|
let mut tx = workspace_command.start_transaction();
|
||||||
|
|
Loading…
Reference in a new issue