sapling/eden
Stanislau Hlebik 4f632c4e8b mononoke: create bookmark in add_sync_target
Summary:
This is the first diff that tries to make megarepo asynchronous methods
idempotent - replaying the same reqeust twice shouldn't cause corruption on the
server. At the moment this is not the case - if we have a runaway
add_sync_target call, then in the end it moves a bookmark to a random place,
even if there was another same successful add_sync_target call and a few others on
top.

add_sync_target should create a new bookmark, and if a bookmark already exists
it's better to not move it to a random place.

This diff does it, however it creates another problem - if a request was successful on mononoke side, but we failed to deliver the successful result to the client (e.g. network issues), then retrying this request would fail because bookmark already exists. This problem will be addressed in the next diff.

Reviewed By: mojsarn

Differential Revision: D29848378

fbshipit-source-id: 8a58e35c26b989a7cbd4d4ac4cbae1691f6e9246
2021-07-24 03:55:08 -07:00
..
fs cli support for ActivityRecorder 2021-07-23 12:32:25 -07:00
hg-server Remove target-based type checking in eden 2021-07-23 12:34:20 -07:00
integration set locale in hg env in integration tests 2021-07-23 10:22:16 -07:00
locale
mononoke mononoke: create bookmark in add_sync_target 2021-07-24 03:55:08 -07:00
scm fsprobe: implement sequential file reading test 2021-07-23 10:09:25 -07:00
test_support fix systemd tests locally 2021-07-09 17:24:11 -07:00
test-data fix fsck snapshot integration tests 2021-07-14 16:20:04 -07:00
.gitignore
Eden.project.toml