new_blobimport: force set bookmarks rather than gracefully create them

Reviewed By: farnz

Differential Revision: D8137458

fbshipit-source-id: 898290b19852d3998ff1d55282045167e33e46e5
This commit is contained in:
Lukas Piatkowski 2018-05-24 04:57:34 -07:00 committed by Facebook Github Bot
parent 1b8c556a5e
commit c5f971d960

View File

@ -67,7 +67,7 @@ pub fn upload_bookmarks(
for (key, value) in vec {
let key = Bookmark::new_ascii(try_boxfuture!(AsciiString::from_ascii(key)));
let value = DChangesetId::new(value.into_nodehash().into_mononoke());
try_boxfuture!(transaction.create(&key, &value))
try_boxfuture!(transaction.force_set(&key, &value))
}
transaction.commit().map(move |()| count).boxify()