mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
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:
parent
1b8c556a5e
commit
c5f971d960
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user