mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
87f2e4d0f8
Summary: This diff adds an ability to optionally pass a `CandidateSelectionHint` to `scs` implementation of the `xrepo-lookup` call, which would help in cases when ancestor commits have multiple mappings in the large repo. Adding this functionality to `scsc xrepo-lookup` is essentially a way to manually fix multi-mapping problems, which could otherwise block Mononoke progress. For more information on multi-mapping problems, see https://fburl.com/gmywf2d6. TLDR is that `synced_commit_mapping` is `1:n` with `n` on the large repo side. When syncing commits, we need a way to disambiguate multi-mapped ancestors. `CandidateSelectionHint` is our way of doing this: it expressed desired properties of the commit we would like Mononoke to choose among the list of multi-mapped candidates. Reviewed By: markbt Differential Revision: D23991178 fbshipit-source-id: 29c90b7910ad1b84ff71964d6609521fded2f987 |
||
---|---|---|
.. | ||
src | ||
metadata.cpp | ||
metadata.h | ||
metadata.rs |