equal
deleted
inserted
replaced
534 let prefix = canonical_path(root_dir, root_dir, new_root)?; |
534 let prefix = canonical_path(root_dir, root_dir, new_root)?; |
535 |
535 |
536 Ok(Self { |
536 Ok(Self { |
537 prefix: path_to_hg_path_buf(prefix).and_then(|mut p| { |
537 prefix: path_to_hg_path_buf(prefix).and_then(|mut p| { |
538 if !p.is_empty() { |
538 if !p.is_empty() { |
539 p.push(b'/'); |
539 p.push_byte(b'/'); |
540 } |
540 } |
541 Ok(p) |
541 Ok(p) |
542 })?, |
542 })?, |
543 path: path.to_owned(), |
543 path: path.to_owned(), |
544 root: new_root.to_owned(), |
544 root: new_root.to_owned(), |