forked from mirrors/jj
merge_tools: use right_file_mode
in make_diff_files
See the issue #2548 for more context.
This commit is contained in:
parent
e4955d29f3
commit
ffd688472e
1 changed files with 16 additions and 4 deletions
|
@ -350,7 +350,7 @@ pub fn make_diff_files(
|
|||
files.push(scm_record::File {
|
||||
old_path: None,
|
||||
path: Cow::Owned(changed_path.to_fs_path(Path::new(""))),
|
||||
file_mode: None,
|
||||
file_mode: Some(right_file_mode),
|
||||
sections,
|
||||
});
|
||||
}
|
||||
|
@ -587,7 +587,11 @@ mod tests {
|
|||
File {
|
||||
old_path: None,
|
||||
path: "unchanged",
|
||||
file_mode: None,
|
||||
file_mode: Some(
|
||||
FileMode(
|
||||
33188,
|
||||
),
|
||||
),
|
||||
sections: [
|
||||
Unchanged {
|
||||
lines: [
|
||||
|
@ -599,7 +603,11 @@ mod tests {
|
|||
File {
|
||||
old_path: None,
|
||||
path: "changed",
|
||||
file_mode: None,
|
||||
file_mode: Some(
|
||||
FileMode(
|
||||
33188,
|
||||
),
|
||||
),
|
||||
sections: [
|
||||
Unchanged {
|
||||
lines: [
|
||||
|
@ -644,7 +652,11 @@ mod tests {
|
|||
File {
|
||||
old_path: None,
|
||||
path: "added",
|
||||
file_mode: None,
|
||||
file_mode: Some(
|
||||
FileMode(
|
||||
33188,
|
||||
),
|
||||
),
|
||||
sections: [
|
||||
Changed {
|
||||
lines: [
|
||||
|
|
Loading…
Reference in a new issue