forked from mirrors/jj
backout: propagate error from merging of trees
This commit is contained in:
parent
b19afb6d45
commit
e5ec99d159
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ pub fn back_out_commit(
|
|||
) -> Result<Commit, TreeMergeError> {
|
||||
let old_base_tree = merge_commit_trees(mut_repo, &old_commit.parents())?;
|
||||
let new_base_tree = merge_commit_trees(mut_repo, new_parents)?;
|
||||
let new_tree = merge_trees(&new_base_tree, &old_commit.tree(), &old_base_tree).unwrap();
|
||||
let new_tree = merge_trees(&new_base_tree, &old_commit.tree(), &old_base_tree)?;
|
||||
let new_parent_ids = new_parents
|
||||
.iter()
|
||||
.map(|commit| commit.id().clone())
|
||||
|
|
Loading…
Reference in a new issue