sapling/repo_client
Kostia Balytskyi 1b8bd1ea80 mononoke: get rid of hg changesets in PostResolveAction
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
2019-11-04 06:31:29 -08:00
..
bundle2_resolver mononoke: get rid of hg changesets in PostResolveAction 2019-11-04 06:31:29 -08:00
obsolete/src Yearless license header 2019-10-11 13:52:34 -07:00
remotefilelog/src Yearless license header 2019-10-11 13:52:34 -07:00
repo_read_write_status/src Yearless license header 2019-10-11 13:52:34 -07:00
schemas mononoke: Allow dynamic repo read_only mode 2019-03-18 08:53:53 -07:00
scribe_commit_queue/src Yearless license header 2019-10-11 13:52:34 -07:00
src mononoke: get rid of hg changesets in PostResolveAction 2019-11-04 06:31:29 -08:00
streaming_clone/src Yearless license header 2019-10-11 13:52:34 -07:00
wirepack/src mononoke: move bundle2_resolver into repo_client 2019-10-16 08:11:03 -07:00