MCPcopy Create free account
hub / github.com/emwalker/digraph / add_repo_topic

Method add_repo_topic

backend/src/git/topic.rs:610–630  ·  view source on GitHub ↗
(
        &self,
        mutation: Mutation,
        store: &S,
        name: String,
        parent: RepoTopic,
        matches: BTreeSet<SynonymMatch>,
    )

Source from the content-addressed store, hash-verified

608 }
609
610 fn add_repo_topic<S>(
611 &self,
612 mutation: Mutation,
613 store: &S,
614 name: String,
615 parent: RepoTopic,
616 matches: BTreeSet<SynonymMatch>,
617 ) -> Result<UpsertTopicResult>
618 where
619 S: SaveChangesForPrefix,
620 {
621 if !matches.is_empty() {
622 log::info!(
623 "creating new repo topic even though there are matching synonyms: {:?}",
624 matches
625 );
626 }
627
628 let (child, parent_topics) = self.make_topic(&parent, name)?;
629 self.persist_repo_topic(mutation, store, child, parent, parent_topics)
630 }
631
632 fn persist_repo_topic<S>(
633 &self,

Callers 1

callMethod · 0.80

Calls 3

make_topicMethod · 0.80
persist_repo_topicMethod · 0.80
is_emptyMethod · 0.45

Tested by

no test coverage detected