diff --git a/cli/src/cli_util.rs b/cli/src/cli_util.rs
index 3a75a8edf9..c3f32920df 100644
--- a/cli/src/cli_util.rs
+++ b/cli/src/cli_util.rs
@@ -806,7 +806,7 @@ impl WorkspaceCommandHelper {
// The working copy was presumably updated by the git command that updated
// HEAD, so we just need to reset our working copy
// state to it without updating working copy files.
- let new_git_head_tree = new_git_head_commit.merged_tree()?;
+ let new_git_head_tree = new_git_head_commit.tree()?;
locked_working_copy.reset(&new_git_head_tree)?;
tx.mut_repo().rebase_descendants(&self.settings)?;
self.user_repo = ReadonlyUserRepo::new(tx.commit());
@@ -888,7 +888,7 @@ impl WorkspaceCommandHelper {
&mut self,
) -> Result<(LockedWorkingCopy, Commit), CommandError> {
let (locked_working_copy, wc_commit) = self.unchecked_start_working_copy_mutation()?;
- if wc_commit.merged_tree_id() != locked_working_copy.old_tree_id() {
+ if wc_commit.tree_id() != locked_working_copy.old_tree_id() {
return Err(user_error("Concurrent working copy operation. Try again."));
}
Ok((locked_working_copy, wc_commit))
@@ -1305,7 +1305,7 @@ See https://github.com/martinvonz/jj/blob/main/docs/working-copy.md#stale-workin
max_new_file_size: self.settings.max_new_file_size()?,
})?;
drop(progress);
- if new_tree_id != *wc_commit.merged_tree_id() {
+ if new_tree_id != *wc_commit.tree_id() {
let mut tx = start_repo_transaction(
&self.user_repo.repo,
&self.settings,
@@ -1672,7 +1672,7 @@ pub fn check_stale_working_copy(
) -> Result