mirror of
https://github.com/facebook/sapling.git
synced 2024-10-12 01:39:21 +03:00
mononoke: do not move paths in mononoke_admin if a commit was preserved
Summary: verify-wc didn't work correctly for commits that were preserved i.e. commits that are the same in small and large repos. For those commits we don't need to move paths Reviewed By: farnz Differential Revision: D18427624 fbshipit-source-id: 102ce743714fe63a3d5ba9e6441fa735361063cb
This commit is contained in:
parent
77f1960967
commit
aac4194f7c
@ -155,7 +155,12 @@ async fn subcommand_verify_wc(
|
||||
.compat()
|
||||
.await?;
|
||||
|
||||
move_all_paths(large_repo_entries, commit_syncer.get_mover())
|
||||
if large_hash == small_hash {
|
||||
// No need to move any paths, because this commit was preserved as is
|
||||
Ok(large_repo_entries)
|
||||
} else {
|
||||
move_all_paths(large_repo_entries, commit_syncer.get_mover())
|
||||
}
|
||||
};
|
||||
|
||||
let small_repo_entries = async {
|
||||
|
Loading…
Reference in New Issue
Block a user