sapling/eden/mononoke/commit_rewriting
Stanislau Hlebik ea794c29b4 mononoke: make it possible automatically select parents when manually rewriting
Summary:
One of the things that megarepo_tool can do is to manually rewrite a commit
from one repo to another with a particular commit remapping version.

e.g.

```

source repo
X
|
P

target repo
X'  <- rewritten X
|
A   <- commit that exists only in target repo
|
P'  <- rewritten P

```

Previously it always required manually setting the parents in the target repo
i.e. in the example above we'd need to tell that A is the new parent of
rewritten commit.

However this is not always convenient. Sometimes we just want megarepo_tool to take
parents in the source repo (i.e. P in the example above), remap them to large repo
(i.e. P' in the example above), and use P' as a target repo parent.

This diff adds a special option that lets us do so.

Reviewed By: farnz

Differential Revision: D30040016

fbshipit-source-id: 116dbe1803857053336ca76d0a65dbca8b14bd73
2021-08-03 08:46:41 -07:00
..
backsyncer third-party/rust: remove patch from curl and curl-sys 2021-07-26 15:00:16 -07:00
bookmark_renaming third-party/rust: remove patch from curl and curl-sys 2021-07-26 15:00:16 -07:00
bookmarks_validator third-party/rust: remove patch from curl and curl-sys 2021-07-26 15:00:16 -07:00
commit_validator third-party/rust: remove patch from curl and curl-sys 2021-07-26 15:00:16 -07:00
cross_repo_sync Make thrift-generated dyn async traits future compatible 2021-07-29 16:25:33 -07:00
live_commit_sync_config Make thrift-generated dyn async traits future compatible 2021-07-29 16:25:33 -07:00
megarepo mononoke: make it possible automatically select parents when manually rewriting 2021-08-03 08:46:41 -07:00
mononoke_x_repo_sync_job third-party/rust: remove patch from curl and curl-sys 2021-07-26 15:00:16 -07:00
movers third-party/rust: remove patch from curl and curl-sys 2021-07-26 15:00:16 -07:00
synced_commit_mapping third-party/rust: remove patch from curl and curl-sys 2021-07-26 15:00:16 -07:00