From bcedfa4fdb5e275233b419ffc81f8de619663692 Mon Sep 17 00:00:00 2001 From: Rajiv Sharma Date: Thu, 5 Dec 2024 09:15:55 -0800 Subject: [PATCH] Include git ref content mapping facet in gitimport's Repo definition Summary: :) Reviewed By: mitrandir77 Differential Revision: D66651139 fbshipit-source-id: 91646b6ada80529fb4fe2104511882ec10ff18d8 --- eden/mononoke/git/gitimport/Cargo.toml | 1 + eden/mononoke/git/gitimport/src/repo.rs | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/eden/mononoke/git/gitimport/Cargo.toml b/eden/mononoke/git/gitimport/Cargo.toml index 6ebaccc6ddf99..8d54950b3e9f1 100644 --- a/eden/mononoke/git/gitimport/Cargo.toml +++ b/eden/mononoke/git/gitimport/Cargo.toml @@ -24,6 +24,7 @@ facet = { version = "0.1.0", git = "https://github.com/facebookexperimental/rust fbinit = { version = "0.2.0", git = "https://github.com/facebookexperimental/rust-shed.git", branch = "main" } filestore = { version = "0.1.0", path = "../../filestore" } futures = { version = "0.3.30", features = ["async-await", "compat"] } +git_ref_content_mapping = { version = "0.1.0", path = "../../git_ref_content_mapping" } git_symbolic_refs = { version = "0.1.0", path = "../../git_symbolic_refs" } gix-hash = "0.15.1" import_direct = { version = "0.1.0", path = "../import_direct" } diff --git a/eden/mononoke/git/gitimport/src/repo.rs b/eden/mononoke/git/gitimport/src/repo.rs index 340cff3b97cb4..a0854d05d9fc0 100644 --- a/eden/mononoke/git/gitimport/src/repo.rs +++ b/eden/mononoke/git/gitimport/src/repo.rs @@ -18,6 +18,7 @@ use cacheblob::LeaseOps; use commit_graph::CommitGraph; use commit_graph::CommitGraphWriter; use filestore::FilestoreConfig; +use git_ref_content_mapping::GitRefContentMapping; use git_symbolic_refs::GitSymbolicRefs; use metaconfig_types::RepoConfig; use repo_blobstore::RepoBlobstore; @@ -54,6 +55,9 @@ pub(crate) struct Repo { #[facet] bonsai_tag_mapping: dyn BonsaiTagMapping, + #[facet] + git_ref_content_mapping: dyn GitRefContentMapping, + #[facet] git_symbolic_refs: dyn GitSymbolicRefs,