+1
Cargo.toml
+1
Cargo.toml
+1
-1
cli/src/cli_util.rs
+1
-1
cli/src/cli_util.rs
···
254
254
.modify(|filter| {
255
255
*filter = tracing_subscriber::EnvFilter::builder()
256
256
.with_default_directive(tracing::metadata::LevelFilter::DEBUG.into())
257
-
.from_env_lossy()
257
+
.from_env_lossy();
258
258
})
259
259
.map_err(|err| internal_error_with_message("failed to enable debug logging", err))?;
260
260
tracing::info!("debug logging enabled");
+1
-1
cli/src/commands/config/set.rs
+1
-1
cli/src/commands/config/set.rs
+1
-1
cli/src/commands/init.rs
+1
-1
cli/src/commands/init.rs
+1
-1
cli/src/commands/operation/abandon.rs
+1
-1
cli/src/commands/operation/abandon.rs
···
134
134
let mut locked_ws = workspace.start_working_copy_mutation()?;
135
135
let old_op_id = locked_ws.locked_wc().old_operation_id();
136
136
if let Some((_, new_id)) = reparented_head_ops().find(|(old, _)| old.id() == old_op_id) {
137
-
locked_ws.finish(new_id.clone())?
137
+
locked_ws.finish(new_id.clone())?;
138
138
} else {
139
139
writeln!(
140
140
ui.warning_default(),
+1
-1
cli/src/commands/status.rs
+1
-1
cli/src/commands/status.rs
···
93
93
formatter.labeled("conflict"),
94
94
"There are unresolved conflicts at these paths:"
95
95
)?;
96
-
print_conflicted_paths(&conflicts, formatter, &workspace_command)?
96
+
print_conflicted_paths(&conflicts, formatter, &workspace_command)?;
97
97
}
98
98
99
99
let template = workspace_command.commit_summary_template();
+2
-2
cli/src/config.rs
+2
-2
cli/src/config.rs
···
499
499
.add_source(from_toml!("config/revsets.toml"))
500
500
.add_source(from_toml!("config/templates.toml"));
501
501
if cfg!(unix) {
502
-
builder = builder.add_source(from_toml!("config/unix.toml"))
502
+
builder = builder.add_source(from_toml!("config/unix.toml"));
503
503
}
504
504
if cfg!(windows) {
505
-
builder = builder.add_source(from_toml!("config/windows.toml"))
505
+
builder = builder.add_source(from_toml!("config/windows.toml"));
506
506
}
507
507
builder.build().unwrap()
508
508
}
+2
-2
cli/src/diff_util.rs
+2
-2
cli/src/diff_util.rs
···
1282
1282
match token_type {
1283
1283
DiffTokenType::Matching => formatter.write_all(content)?,
1284
1284
DiffTokenType::Different => {
1285
-
formatter.with_label("token", |formatter| formatter.write_all(content))?
1285
+
formatter.with_label("token", |formatter| formatter.write_all(content))?;
1286
1286
}
1287
1287
}
1288
1288
}
···
1402
1402
CopyOperation::Rename => ("renamed", "R"),
1403
1403
};
1404
1404
let path = path_converter.format_copied_path(before_path, after_path);
1405
-
writeln!(formatter.labeled(label), "{sigil} {path}")?
1405
+
writeln!(formatter.labeled(label), "{sigil} {path}")?;
1406
1406
} else {
1407
1407
let path = path_converter.format_file_path(after_path);
1408
1408
match (before.is_present(), after.is_present()) {
+1
-1
cli/src/formatter.rs
+1
-1
cli/src/formatter.rs
+5
-5
cli/src/merge_tools/builtin.rs
+5
-5
cli/src/merge_tools/builtin.rs
···
265
265
.split_inclusive('\n')
266
266
.map(|line| Cow::Owned(line.to_owned()))
267
267
.collect(),
268
-
})
268
+
});
269
269
}
270
270
DiffHunk::Different(sides) => {
271
271
assert_eq!(sides.len(), 2, "only two inputs were provided to the diff");
···
285
285
make_section_changed_lines(right_side, scm_record::ChangeType::Added),
286
286
]
287
287
.concat(),
288
-
})
288
+
});
289
289
}
290
290
}
291
291
}
···
361
361
is_checked: false,
362
362
old_description: None,
363
363
new_description: Some(Cow::Owned(describe_binary(hash.as_deref(), num_bytes))),
364
-
})
364
+
});
365
365
}
366
366
367
367
(
···
426
426
is_checked: false,
427
427
old_description: Some(Cow::Owned(describe_binary(hash.as_deref(), num_bytes))),
428
428
new_description: None,
429
-
})
429
+
});
430
430
}
431
431
}
432
432
···
507
507
executable: file.get_file_mode()
508
508
== Some(scm_record::FileMode(mode::EXECUTABLE)),
509
509
}),
510
-
)
510
+
);
511
511
}
512
512
}
513
513
}
+1
-1
cli/src/movement_util.rs
+1
-1
cli/src/movement_util.rs
+1
-1
cli/src/templater.rs
+1
-1
cli/src/templater.rs
+1
-1
cli/tests/test_git_colocated.rs
+1
-1
cli/tests/test_git_colocated.rs
+1
-1
cli/tests/test_log_command.rs
+1
-1
cli/tests/test_log_command.rs
+1
-1
cli/tests/test_next_prev_commands.rs
+1
-1
cli/tests/test_next_prev_commands.rs
+1
-1
cli/tests/test_parallelize_command.rs
+1
-1
cli/tests/test_parallelize_command.rs
+1
-1
cli/tests/test_util_command.rs
+1
-1
cli/tests/test_util_command.rs
+1
-1
lib/benches/diff_bench.rs
+1
-1
lib/benches/diff_bench.rs
+1
-1
lib/src/commit.rs
+1
-1
lib/src/commit.rs
+2
-2
lib/src/content_hash.rs
+2
-2
lib/src/content_hash.rs
···
81
81
82
82
impl<T: ContentHash> ContentHash for Vec<T> {
83
83
fn hash(&self, state: &mut impl DigestUpdate) {
84
-
self.as_slice().hash(state)
84
+
self.as_slice().hash(state);
85
85
}
86
86
}
87
87
···
97
97
None => state.update(&0u32.to_le_bytes()),
98
98
Some(x) => {
99
99
state.update(&1u32.to_le_bytes());
100
-
x.hash(state)
100
+
x.hash(state);
101
101
}
102
102
}
103
103
}
+1
-1
lib/src/default_index/entry.rs
+1
-1
lib/src/default_index/entry.rs
+1
-1
lib/src/default_index/revset_graph_iterator.rs
+1
-1
lib/src/default_index/revset_graph_iterator.rs
+1
-1
lib/src/default_index/store.rs
+1
-1
lib/src/default_index/store.rs
+1
-1
lib/src/diff.rs
+1
-1
lib/src/diff.rs
+1
-1
lib/src/fileset.rs
+1
-1
lib/src/fileset.rs
···
328
328
FilePattern::FilePath(path) => file_paths.push(path),
329
329
FilePattern::PrefixPath(path) => prefix_paths.push(path),
330
330
FilePattern::FileGlob { dir, pattern } => {
331
-
file_globs.push((dir, pattern.clone()))
331
+
file_globs.push((dir, pattern.clone()));
332
332
}
333
333
}
334
334
continue;
+2
-2
lib/src/git.rs
+2
-2
lib/src/git.rs
···
1782
1782
// TODO Git warns when a duplicate config entry is found, we should
1783
1783
// consider doing the same.
1784
1784
("path", PartialSubmoduleConfig { path: None, .. }) => {
1785
-
map_entry.path = Some(config_value.to_string())
1785
+
map_entry.path = Some(config_value.to_string());
1786
1786
}
1787
1787
("url", PartialSubmoduleConfig { url: None, .. }) => {
1788
-
map_entry.url = Some(config_value.to_string())
1788
+
map_entry.url = Some(config_value.to_string());
1789
1789
}
1790
1790
_ => (),
1791
1791
};
+1
-1
lib/src/graph.rs
+1
-1
lib/src/graph.rs
+2
-2
lib/src/local_backend.rs
+2
-2
lib/src/local_backend.rs
···
513
513
fn conflict_from_proto(proto: crate::protos::local_store::Conflict) -> Conflict {
514
514
let mut conflict = Conflict::default();
515
515
for term in proto.removes {
516
-
conflict.removes.push(conflict_term_from_proto(term))
516
+
conflict.removes.push(conflict_term_from_proto(term));
517
517
}
518
518
for term in proto.adds {
519
-
conflict.adds.push(conflict_term_from_proto(term))
519
+
conflict.adds.push(conflict_term_from_proto(term));
520
520
}
521
521
conflict
522
522
}
+2
-2
lib/src/merge.rs
+2
-2
lib/src/merge.rs
···
424
424
425
425
impl<T> Extend<T> for MergeBuilder<T> {
426
426
fn extend<I: IntoIterator<Item = T>>(&mut self, iter: I) {
427
-
self.values.extend(iter)
427
+
self.values.extend(iter);
428
428
}
429
429
}
430
430
···
512
512
513
513
impl<T: ContentHash> ContentHash for Merge<T> {
514
514
fn hash(&self, state: &mut impl DigestUpdate) {
515
-
self.values.hash(state)
515
+
self.values.hash(state);
516
516
}
517
517
}
518
518
+1
-1
lib/src/operation.rs
+1
-1
lib/src/operation.rs
+1
-1
lib/src/simple_op_heads_store.rs
+1
-1
lib/src/simple_op_heads_store.rs
+1
-1
lib/tests/test_bad_locking.rs
+1
-1
lib/tests/test_bad_locking.rs
+6
-6
lib/tests/test_conflicts.rs
+6
-6
lib/tests/test_conflicts.rs
···
535
535
2
536
536
),
537
537
None
538
-
)
538
+
);
539
539
}
540
540
541
541
#[test]
···
631
631
2
632
632
),
633
633
@"None"
634
-
)
634
+
);
635
635
}
636
636
637
637
#[test]
···
746
746
3
747
747
),
748
748
None
749
-
)
749
+
);
750
750
}
751
751
752
752
#[test]
···
767
767
2
768
768
),
769
769
None
770
-
)
770
+
);
771
771
}
772
772
773
773
#[test]
···
790
790
2
791
791
),
792
792
None
793
-
)
793
+
);
794
794
}
795
795
796
796
#[test]
···
814
814
2
815
815
),
816
816
None
817
-
)
817
+
);
818
818
}
819
819
820
820
#[test]
+1
-1
lib/tests/test_index.rs
+1
-1
lib/tests/test_index.rs
···
650
650
// u32: number of local change ids
651
651
// u32: number of overflow parent entries
652
652
// u32: number of overflow change id positions
653
-
fs::write(entry.path(), b"\0".repeat(24)).unwrap()
653
+
fs::write(entry.path(), b"\0".repeat(24)).unwrap();
654
654
}
655
655
656
656
let repo = load_repo_at_head(&settings, test_repo.repo_path());