mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 09:17:30 +03:00
1b8bd1ea80
Summary: `PostResolveAction` has to be convertible between repos, so that push-redirector can act on it. However, converting hg changesets is trickier than converting bonsais, at least because normally we don't even care about hg changesets in the large repo. So, the natural thing is to express all the needed operations in `PostResolveAction` variants in terms of `ChangesetId`. This has a few semi-exceptions though: - `CommonHeads` is used in respose generation, but not in processing, so let's leave it as is - `UploadedHgBonsaiMap` maps original upload `HgChangesetId`s with the converted `BonsaiChangeset`s. I decided to leave it as as in case we need the mapping later (this mapping is easily converted into `HgChangesetId -> Remapped BonsaiChangeset`). I'd rather delete it later, than have to recreate it. To achieve the mentioned goal, this diff: - removes `PostResolvePushRebase.changesets` as unnecessary (this vec of changesets is equivalent to the ones, stored in `uploaded_hg_bonsai_map`, and we do not care about the order in pushrebase scenarios) - makes all `PlainBookmarkPush` and `InfiniteBookmarkPush` structs wrap around a `ChangesetId`, instead of `HgChangesetId`. For this, a bunch of conversion functions were moved back from `unbundle` into `bundle2_resolver` Reviewed By: StanislavGlebik Differential Revision: D18288916 fbshipit-source-id: 5a26ddea98827fefd325412b87006a10585a5997 |
||
---|---|---|
.. | ||
bundle2_resolver | ||
obsolete/src | ||
remotefilelog/src | ||
repo_read_write_status/src | ||
schemas | ||
scribe_commit_queue/src | ||
src | ||
streaming_clone/src | ||
wirepack/src |