mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 09:17:30 +03:00
f6d06a266a
Summary: `bulk_add()` method was checking for conflicts correctly i.e. it wouldn't fail if we try to insert the same mapping twice. `bulk_add_git_mapping_in_transaction` wasn't doing this check i.e. it would fail. This caused us a few problems and this diff fixes them - now `bulk_add_git_mapping_in_transaction` would do the same checks as bulk_add was doing previously. There is another important change in behaviour: if we try to insert two entries, one of them has a conflict another don't then previously we'd insert the second entry. Now we don't insert any, arguably that's a preferred behaviour. Reviewed By: krallin Differential Revision: D22332001 fbshipit-source-id: 86fff8c23c43eeca0fb36b01b10cdaa73b3ce4ab |
||
---|---|---|
.. | ||
main.rs |