Commit Graph

3541 Commits

Author SHA1 Message Date
Durham Goode
742240b65f hggit: delete hggit
Summary: This is no longer used, now that configerator does it's sync via SCS.

Reviewed By: quark-zju

Differential Revision: D31006839

fbshipit-source-id: ddf7923a3c80ad47519bce0e5cb3895f62e7ae2e
2021-09-21 13:45:11 -07:00
Mark Juggurnauth-Thomas
3e9cf0f135 blame_v2: ignore parents if file was copied
Summary:
Mononoke blame derivation differs from Mercurial: if a file is copied over
(i.e., it exists in one or more parents, but also has copy-from info for
a different path), then Mononoke treats this as a merge between the parent
content(s), and the copied-from contents, whereas Mercurial ignores the
parents and just continues the blame from the copied-from contents.

Change Mononoke to match Mercurial behaviour.  This is a breaking change:
blame_v2 derived before this change will not match blame_v2 derived after
this change.  We will rederive blame_v2 for all repositories affected by
this.

Reviewed By: StanislavGlebik

Differential Revision: D31079507

fbshipit-source-id: 33eb4ce54b99712d551ff46e9e96ccd7e5b78d80
2021-09-21 10:22:11 -07:00
Digant Kasundra
ffd233228b Add syslog and slog-syslog crates
Summary: ACE will have to run in situations where Chef has not run, but we'll need to be able to reliably write to the auth logs so Blackbird can properly build detections.  So we need these crates so we can build the somewhat foolproof solution to ensure ACE logs all executions.

Reviewed By: farnz

Differential Revision: D31066559

fbshipit-source-id: 9fa3b5778cd2602bdeaac90a9daa758b117babfe
2021-09-21 07:22:38 -07:00
Jan Mazur
25404854aa fix a typo
Summary: a type

Reviewed By: HarveyHunt

Differential Revision: D31081823

fbshipit-source-id: 17e8d8eb8bf87d90bd7122c01ef9248731af31f4
2021-09-21 07:22:38 -07:00
Mark Juggurnauth-Thomas
9423b5c88f mercurial_mutation: chunk database fetches
Summary:
Some requests can occasionally cause fetches from the database for lots of
changesets in one go.  This causes excessive load on a single database
instance.  Chunk these requests into a more reasonable size.

Reviewed By: krallin

Differential Revision: D31056868

fbshipit-source-id: cbc47f7ef40bfbefaca86b1516fb574772cb531e
2021-09-21 03:24:28 -07:00
Stanislau Hlebik
37962b1ca3 mononoke: log how long it took to derive all the data for the whole stack in derived data tailer
Summary: It's useful to have this data

Reviewed By: mitrandir77

Differential Revision: D31053459

fbshipit-source-id: cbe9a3fad30563812218b8b9b5d4c3aaeb279285
2021-09-20 12:27:58 -07:00
Stanislau Hlebik
10084d12f0 mononoke: log reponame to derived data tailer scuba set
Summary:
It's useful to know the repo name (we can get it from tw handle name, but
that's less convenient).

Reviewed By: mitrandir77

Differential Revision: D31053458

fbshipit-source-id: fa7e92c510ea6160c52561d4a7a7c44776c528dc
2021-09-20 12:27:58 -07:00
Zeyi (Rice) Fan
18dbf379df ring: backport kSecRandomDefault is NULL to fix macOS build
Summary:
Backport: https://github.com/briansmith/ring/pull/1334

This will allow us to unpin Rust compiler to 1.53.0 and update to 1.55.0.

Reviewed By: xavierd

Differential Revision: D31039024

fbshipit-source-id: f6a9c918e836d93d03c34c77c12bbe63cf7cbe09
2021-09-20 11:22:49 -07:00
Mark Juggurnauth-Thomas
91c4748c5b blame: switch to manager-based derivation
Summary:
Switch derivation of `blame` to the `DerivedDataManager`.

This is mostly the same as the existing derivation implementation.  The main difference is that `blame` derivation using the backfilling config
will use the backfilling config for the unodes that it depends on, too.

Reviewed By: mitrandir77

Differential Revision: D30974102

fbshipit-source-id: 5f69f8c218806bb7606b2af4b831e2104b8440d6
2021-09-20 06:26:21 -07:00
Mark Juggurnauth-Thomas
aef6b3f453 unodes: switch to manager-based derivation
Summary: Switch derivation of `unodes` to the `DerivedDataManager`.

Reviewed By: yancouto

Differential Revision: D30944564

fbshipit-source-id: 41f63cd47cffdd1e24d57b470afef57aa6fe0264
2021-09-20 06:26:21 -07:00
Yan Soares Couto
84118416a2 Simplify code for FsnodeId
Summary: There were already helpers to make this code less copy-pasty, this diff just uses them.

Reviewed By: markbt

Differential Revision: D30933408

fbshipit-source-id: acc27a0904425eccfc71fee884a8f2035ed0c37f
2021-09-20 06:26:21 -07:00
Mark Juggurnauth-Thomas
044ae9f1f0 backfill_derived_data: fix tests to ensure batch invariants
Summary:
The `backfill_batch_dangerous` method requires that the caller ensures
that all dependencies of the batch have been derived, otherwise errors,
such as mappings being written out before the things they map to, can
occur.

When the derived data manager takes over batch derivation, it will enforce this
requirement, so that it is no longer dangerous.  However, The backfiller tests
were not ensuring the invariant, so the tests will fail with the new derivation
implementation.

Fix the tests by ensuring the parent commits are always derived before a
batch is started.  The test is also extended to expose the failure mode
of accidentally deriving batch parents.  This will be fixed in the next
commit.

Reviewed By: yancouto

Differential Revision: D30959132

fbshipit-source-id: 8489a5d0b375692a903854294e3810846c9e13de
2021-09-20 03:23:17 -07:00
Mark Juggurnauth-Thomas
45963588b3 derived_data_utils: implement manager-based DerivedUtils
Summary:
Implement `DerivedUtils` using the `DerivedDataManager`.

This is just for migration.  In the future `DerivedUtils` will be replaced by the manager.

Reviewed By: yancouto

Differential Revision: D30944568

fbshipit-source-id: 32376e3b4aeb959e63f66e989a663c21dee30ba5
2021-09-20 03:23:17 -07:00
Mark Juggurnauth-Thomas
fd388aac1a derived_data_manager: implement data derivation
Summary:
Implement a new version of data derivation in the derived data manager.  This is different from the old version in a few ways:

* `derived_data::BonsaiDerivable` is replaced by `derived_data_manager::BonsaiDerivable`.  This trait defines both how to perform derivation and how to store and retrieve mapping values.  Derivation is performed with reference to the derived data manager, rather than `BlobRepo`.

* The old `Mapping` structs and traits are replaced with a direct implementation in the derived data manager, using the `BonsaiDerivable` trait to handle the derived-data-type-specific parts.

* The new implementation assumes we will stick with parallel derivation, and doesn't implement serial derivation.

Code is copied from the `derived_data` crate, as it is intended to be a replacement once all the derived data types are migrated, and re-using code would create a circular dependency during migration.

This only covers the basic derivation implementation used during production.  The derived data manager will also take over backfilling, but that will happen in a later diff.

Reviewed By: yancouto

Differential Revision: D30805046

fbshipit-source-id: b9660dd957fdf762f621b2cb37fc2eea7bf03074
2021-09-20 03:23:17 -07:00
Mark Juggurnauth-Thomas
0741a4815d derived_data_utils: extract find_oldest_underived
Summary:
The `find_oldest_underived` method of `DerivedUtils` is used outside tests by
exactly one client (the backfiller in tailing mode).  Simplify the
`DerivedUtils` trait by extracting this method from the trait, and replacing
with a more general one that will be easier to implement in terms of the
derived data manager.

Reviewed By: yancouto

Differential Revision: D30944567

fbshipit-source-id: a1d408e091d145297241a5eebc02a87155bc3765
2021-09-20 03:23:17 -07:00
Mark Juggurnauth-Thomas
8fc9f7159a derived_data: split BonsaiDerived trait
Summary:
Split the `BonsaiDerived` type in two:

* `BonsaiDerived` is now just the interface which is used by callers
  who want to derive some derived data type.  It will be implemented by
  both old and new derivation.

* `BonsaiDerivedOld` is the interface that old derivation uses to
  determine the default mapping for derivation.  This will not be
  implemented by new derivation, and will be removed once migration is
  complete.

Reviewed By: yancouto

Differential Revision: D30944566

fbshipit-source-id: 5d30a44da22bcf290ed3123844eb712c7b37dea4
2021-09-20 03:23:17 -07:00
Mark Juggurnauth-Thomas
4776c94ae7 derived_data_manager: remove builder
Summary:
The builder pattern turned out to be unnecessary, as mappings don't need to be
stored in the manager after all.

Reviewed By: StanislavGlebik

Differential Revision: D30944565

fbshipit-source-id: 4300cdcc871c89f98e42d5b47600ac640b4b94eb
2021-09-20 03:23:17 -07:00
Mark Juggurnauth-Thomas
b1ecec2b14 filenodes: make derivation not depend on BlobRepo
Summary:
Make the derivation process for mercurial filenodes not depend on `BlobRepo`.
Instead, use the repo attributes (`RepoBlobstore` and `Filenodes`) directly.
This will allow us to migrate to using `DerivedDataManager` in preparation
for removing `BlobRepo` from derivation entirely.

The existing use of `changesets` for determining the commit's parents is
changed to use the parents from the bonsai changeset.  For normal derivation,
the bonsai changeset is already loaded, so this saves a database round-trip.
For batch derivation we currently need to load the changeset, but it should
be in cache anyway, as other derived data types will also have loaded it.

We still need to keep a `BlobRepo` reference at the moment.  This is because
filenodes depend on the mercurial derived data.  The recursive derivation is
hidden in the call to `repo.get_hg_from_bonsai_changeset`.  When derivation
is migrated to the derived data manager, we can replace this will a direct
derivation.

Reviewed By: StanislavGlebik

Differential Revision: D30765254

fbshipit-source-id: 20cc17c2eb611544869e5f1c15d858663cd60fd1
2021-09-20 03:23:17 -07:00
Stanislau Hlebik
06705f701c mononoke: add names to the fixtures repos
Summary:
Let's give them a more descriptive names so that it's easier to understand
what's going on.

Reviewed By: markbt

Differential Revision: D31022612

fbshipit-source-id: 8e4f516f3d0b1cd661b1a8fceba80a8f85a2ed4f
2021-09-18 00:25:06 -07:00
Stanislau Hlebik
99dd200e34 mononoke: add FileChangeAggregation to split_batch_in_linear_stacks
Summary:
This is a new option in split_batch_in_linear_stacks - it either aggregates
file changes from all ancestors in the stack or not. Currently all of our
callsites wants Aggregate, but in the next diff we'll add a new callsite that
doesn't

Reviewed By: markbt

Differential Revision: D31022444

fbshipit-source-id: ce0613863855163f26ab18c7f35142ae569eb31a
2021-09-18 00:25:06 -07:00
Gus Wynn
c797db63a1 vendor tokio-console and console-subscriber
Summary:
this relies on local changes to make it so cargo metadata ACTUALLY finds this
binary: https://github.com/tokio-rs/console/pull/146 is where I try to upstream
it

Reviewed By: jsgf

Differential Revision: D30944630

fbshipit-source-id: 5d34a32a042f83eff7e7ae7445e23badf10fffe3
2021-09-17 16:23:43 -07:00
Bob Ren
2ce9908315 derive checksum from naming table
Summary: For the time being we don't have checksums in saved states. As a temporary workaround add the ability to derive the checksum from the naming table.

Differential Revision: D30967637

fbshipit-source-id: 4ac34d988d08c9af6f08f7ce46206f756cf1cf0c
2021-09-17 15:26:45 -07:00
Ilia Medianikov
1108dfa113 mononoke: add "source_repo" column to synced_commit_mapping
Summary: Without this bit of information we can't tell where the sync came from (i.e. from which of two repos) so we can't reliably find a commit "source" for a landed commit.

Reviewed By: StanislavGlebik

Differential Revision: D30902774

fbshipit-source-id: d85d0d028fbd6bfb2d64bce89bc7934bad2e242b
2021-09-17 09:23:42 -07:00
Mateusz Kwapich
403f9b0627 add show command to the async-requests
Summary:
This is a very basic commands that uses debug-printing to display all the
request details. In the future we might want to make it more ellaborate but
as-it-is it works.

Reviewed By: StanislavGlebik

Differential Revision: D30965076

fbshipit-source-id: 561c64597b94359843e575550be0ae6f39fad7bf
2021-09-17 09:23:42 -07:00
Mateusz Kwapich
63f37ff9c9 add async-requests subcommand
Summary:
This debug command will allow the user to see and interact with currently
running async requests.

Reviewed By: StanislavGlebik

Differential Revision: D30965077

fbshipit-source-id: 259f1af0eb6ade4a34f6004c7b1ad63cd5f0bc9f
2021-09-17 09:23:42 -07:00
Stanislau Hlebik
ee516928a1 mononoke: make some derived data mapping types comparable
Summary:
It makes it a bit hard to do experiments and compare derivation results.
It's easy to compare these types, so let's do it.

Reviewed By: mitrandir77

Differential Revision: D31017823

fbshipit-source-id: 6173bba53c7ee254198e023dde57564fe9c3efed
2021-09-17 08:25:29 -07:00
Stanislau Hlebik
66279b94a6 mononoke: make sender optional in create_leaf_unode
Summary:
This will be used in the next diffs to add batch derivations for unode.
Also it makes it symmetrical to create_manifest_unode

Reviewed By: mitrandir77

Differential Revision: D31015719

fbshipit-source-id: 65e12901c6a004375c7c0e3b07f1632ac9c6eaa8
2021-09-17 08:25:29 -07:00
Stanislau Hlebik
f951d8d84f mononoke: include additional bonsai changesets during segmented changelog seeder
Summary:
In some cases (e.g. when master bookmark moves backwards) there might be
commits in segmented changelog that are not ancestors of master. When reseeding
we still want to build segments for these chagnesets, and this is what this
diff does (see D30898955 for more details about why we want to build segments
for these changesets).

Reviewed By: quark-zju

Differential Revision: D30996484

fbshipit-source-id: 864aaaacfc04d6169afd3d04ebcb6096ae2514e5
2021-09-17 01:23:05 -07:00
David Tolnay
6ce5dce1be Update to Rust 1.55.0
Summary: Release notes: https://blog.rust-lang.org/2021/09/09/Rust-1.55.0.html

Reviewed By: jsgf

Differential Revision: D30859665

fbshipit-source-id: 89db9befd805babe3405522842864500550d5c8c
2021-09-16 22:24:04 -07:00
Stanislau Hlebik
19d23c70cb mononoke: add a test that shows a weird behaviour of derive_manifest
Summary:
Delete a non-existing file is fine, and also deleting a file when a directory
with the same name just ignores the delete.

This diff adds tests to cover these cases. Overall it seems like a bug, but I'm
not sure it worth fixing - who knows if we have bonsai changesets that rely on
that!

Reviewed By: yancouto

Differential Revision: D30990826

fbshipit-source-id: b04992817469abe2fa82056c4fddac3689559855
2021-09-16 13:58:03 -07:00
Stanislau Hlebik
e4d2d8a0e4 mononoke: add new PathTree insert_and_merge method
Summary:
This method allows to append a value instead of just replacing it.

It will be used in the next diff when we derive manifest for a stack of commits
in one go.

Reviewed By: yancouto

Differential Revision: D30989889

fbshipit-source-id: dd9a574609b4d289c01d6eebcc6f5c76a973a96b
2021-09-16 13:58:03 -07:00
Robin Håkanson
b562bb0344 GitPool updates to handle heavy imports better.
Summary:
Changes:
- Limit simultainous open git-repo objects by amount of CPUs.
- Put a semaphore limit so we wait inside tokio::task domain instead of tokio::blocking domain (later is more expensive and has a hard upper limit).

Reviewed By: mitrandir77

Differential Revision: D30976034

fbshipit-source-id: 3432983b5650bac6aa5178d98d8fd241398aa682
2021-09-16 09:02:22 -07:00
Mateusz Kwapich
cfb0ec6085 make skiplists optional in mononoke
Summary:
This allows the mononoke_api user to choose whether the skiplists
should be used to spped up the ancestry checks or not.

The skiplists crate is already prepared for the situation where skiplist
entries are missing and traverses the graph then.

Reviewed By: yancouto

Differential Revision: D30958909

fbshipit-source-id: 7773487b78ac6641fa2a427c55f679b49f99ac8d
2021-09-16 07:20:01 -07:00
Mateusz Kwapich
515d178024 make WBC optional
Summary:
Allow the mononoke_api user to choose whether they want
oprerations to be sped up using WBC or not.

Reviewed By: yancouto

Differential Revision: D30958908

fbshipit-source-id: 038cf77735e7c655f6801d714762e316b6817df5
2021-09-16 07:20:01 -07:00
Mateusz Kwapich
b6f48e94a4 turn wbc into a trait and add noop implementation
Summary:
Some crates like mononoke_api depend on warm bookmark cache to speed up the
bookmark operations. This prevents them from being used in cases requiring
quick and low overhead startup like CLIs.

This diff makes it possible to swap out the warm bookmark cache to a
implementation that doesn't cache anything. (See next diffs to see how it's
used in mononoke_api crate).

Reviewed By: yancouto

Differential Revision: D30958910

fbshipit-source-id: 4d09367217a66f59539b566e48c8d271b8cc8c8e
2021-09-16 07:20:01 -07:00
Mateusz Kwapich
bc77707fdd remove get_all from warm bookmark cache
Summary:
This method was added before the more generic list method was added. Let's get
rid of it for simplicity and to discourage listing all the bookmarks.

Reviewed By: yancouto

Differential Revision: D30958911

fbshipit-source-id: f4518da3f34591c313657161f69af96d15482e6c
2021-09-16 07:20:01 -07:00
David Tolnay
7f0c6953b8 third-party/rust: Update pin-project 0.4.24 to 0.4.28
Summary:
0.4.24 is incompatible with crates that use `deny(warnings)` on a compiler 1.55.0 or newer.

Example error:

```
error: unused borrow that must be used
  --> common/rust/shed/futures_ext/src/stream/return_remainder.rs:22:1
   |
22 | #[pin_project]
   | ^^^^^^^^^^^^^^
   |
   = note: this error originates in the derive macro `::pin_project::__private::__PinProjectInternalDerive` (in Nightly builds, run with -Z macro-backtrace for more info)
```

The release notes for 0.4.28 call out this issue. https://github.com/taiki-e/pin-project/releases/tag/v0.4.28

Reviewed By: krallin

Differential Revision: D30858380

fbshipit-source-id: 98e98bcb5a6b795b93ed1efd706a1711f15c57db
2021-09-15 23:01:30 -07:00
Jeremy Fitzhardinge
113060beb1 third-party/rust: bump all the tracing packages
Summary:
This includes recent changes:
- `skip_all` in #[instrument] https://github.com/tokio-rs/tracing/pull/1548
- NoSubscriber no-op Subscriber https://github.com/tokio-rs/tracing/pull/1549
- Box/Arc Layer (https://github.com/tokio-rs/tracing/pull/1536 +
  https://github.com/tokio-rs/tracing/pull/1547)
- log filtering fixes https://github.com/tokio-rs/tracing/pull/1543

Local: force `log` and `log-always` features off. This removes the
`enable-trace-logging` flag from smartplatform/reconciler.

Reviewed By: guswynn

Differential Revision: D30906032

fbshipit-source-id: fdc3e4e29a39e9e181d9f4ff017e6b3e16acdcd8
2021-09-15 16:52:25 -07:00
CodemodService Bot
3562c65696 Daily common/rust/cargo_from_buck/bin/autocargo
Reviewed By: krallin

Differential Revision: D30955790

fbshipit-source-id: 45a00d6e8c683b0a1b34ef7041197e9ae30cf63a
2021-09-15 01:29:47 -07:00
Yan Soares Couto
b5a2b2004f Block derivation of mercurial and git changesets for snapshots
Summary:
There's no real equivalent of hg changeset of snapshot, so let's not derive it.

Closes task T97939172

Reviewed By: liubov-dmitrieva

Differential Revision: D30902073

fbshipit-source-id: 8128597c25e12e40e719cdd7800d4b9b792391c9
2021-09-14 05:10:13 -07:00
Alex Barouski
cb1d34f8d4 Added building Uuid5
Summary: We use it as an unique key for the detector

Reviewed By: ginfung

Differential Revision: D30703470

fbshipit-source-id: cb8e7dae5dc4192402530b2cfe564b86aa23c7c8
2021-09-13 14:45:12 -07:00
Liubov Dmitrieva
3fe7179fe6 check all the multiplexed blobstores when we check is_present
Summary:
Edenapi lookup (for file content, filenodes and trees): check all the multiplexed blobstores when we check is_present.

This will help us to avoid undesired behaviour for commit cloud blobs that haven't been replicated to all blobstores. Healer currently doesn't check commit cloud blobs.

Reviewed By: StanislavGlebik

Differential Revision: D30839608

fbshipit-source-id: d13cd4500f7b14731d8b75c763c14a698399ba02
2021-09-13 14:34:04 -07:00
Jun Wu
04433db83f segmented_changelog: update doc for hash -> location endpoint
Summary:
Make it more detailed, especially about corner cases. Avoid ambiguous words
like "valid" etc.

Reviewed By: farnz

Differential Revision: D30876339

fbshipit-source-id: a45ca643c6454645f7729053a7ea5dd78016fc68
2021-09-13 10:08:42 -07:00
Stanislau Hlebik
f3af697f30 mononoke: introduce BackgroundUnlessTooSlow session class and use it in blobstore
Summary:
Some time ago (see D25910464 (fca761e153)) we've started using Background session class
while deriving data. This was done to avoid overloading blobstore sync queue - if Background
session class is set then multiplex blobstore waits for all blobstores to
finish instead of writing to the blobstore sync queue right away. However if any of the
blobstores fails then we start writing to the blobstore sync queue. In theory it should have avoided the problem of overloading blobstore sync queue while having the same multiplex reliability (i.e. if only a single blobstore fails the whole multiplex put doesn't fail)

Unfortunately there was a flaw - if blobstore put of a single blobstore wasn't
failing but was just too slow, then the whole multiplexed put operation becomes
too slow. This diff fixes this flaw by adding a timeout - if multiplexed put is
taking too long then we fallback to writing entries to the blobstore sync
queue.

Note that I added a new session class - BackgroundUnlessTooSlow -
because I figured that in some cases we are ok with waiting a long time but not
writing to the sync queue. Skiplist builder might be a good example of that -
since it's doing overwrites then we don't want to write to the blobstore sync
queue at all, because healer doesn't process overwrites correctly.

Reviewed By: farnz

Differential Revision: D30892377

fbshipit-source-id: 69ac1795002b124e11daac13d8bfe59895191168
2021-09-13 08:09:12 -07:00
Stanislau Hlebik
8ca1ef0c5e mononoke: actually use scuba dataset that's set on the cmd line
Summary:
I added logging in D30805504 (d5e2624fbb), however it wasn't really logging anything,
because I forgot to pass scuba sample builder to CoreContext (facepalm).

This diff fixes it.

Reviewed By: HarveyHunt

Differential Revision: D30899642

fbshipit-source-id: 6e20f1e84fc96175be8ca7a6f91c0fc61caf8e49
2021-09-13 05:38:33 -07:00
Stanislau Hlebik
5e45855552 mononoke: remove unnecessary CoreContext creation
Summary:
It looks like the comment is misleading (we don't really derive anything in
this block, just finding underived commits), and this CoreContext override
doesn't seem necessary anymore. Let's remove it

Reviewed By: farnz

Differential Revision: D30899641

fbshipit-source-id: 2850905891a9bd8b01f3f6fa9ef15c572fc2f07a
2021-09-13 05:27:51 -07:00
Jun Wu
8aa676ada0 edenapi_service: add capabilities endpoint
Summary:
Add an endpoint to provide repo configuration information, such as whether
segmented changelog is supported by the server or not. This helps the client
make decisions without hitting actual (expensive) endpoints and distinguishing
from unrelated server errors. It would allow us to remove error-prone
client-side config deciding whether to use segment clone.

Reviewed By: krallin

Differential Revision: D30831346

fbshipit-source-id: 872e20a32879e075c75481f622b2a49000059d04
2021-09-10 16:27:17 -07:00
Jun Wu
dafe41f872 segmented_changelog: add trait method to test if segmented_changelog is disabled or not
Summary:
In a future diff, we want an endpoint to test if segmented changelog is
supported for a repo without doing any real computation using segmented
chagnelog. This would be useful for the client to decide whether it can
use segmented changelog clone or not, instead of relying on fragile
per-repo configuration.

Reviewed By: farnz

Differential Revision: D30825920

fbshipit-source-id: 16dc5bf762da2d2b9cd808c129e1830285023f3d
2021-09-10 16:27:17 -07:00
Ilia Medianikov
f394b86528 mononoke/scs: add method to look up commit origin over pushrebase mutations
Reviewed By: StanislavGlebik

Differential Revision: D30495086

fbshipit-source-id: 5fe659033b5e0e8a557f173d677caa0dfd531b05
2021-09-10 16:27:16 -07:00
Stanislau Hlebik
67d019e214 mononoke: add open_source_repo/open_target_repo functions
Summary:
It's nice to have these functions to open source and target repos.

Previously we always had to get repo id first, and then call
open_repo_internal_with_repo_id

Reviewed By: yancouto

Differential Revision: D30866314

fbshipit-source-id: dd74822da755de232f4701f8523088e0bb612cb9
2021-09-10 09:49:01 -07:00