MCPcopy Index your code
hub / github.com/emwalker/digraph / change

Method change

backend/src/git/topic.rs:165–185  ·  view source on GitHub ↗
(
        &self,
        topic: &RepoTopic,
        parent_topics: &Vec<RepoTopic>,
        child_links: &Vec<RepoLink>,
        child_topics: &Vec<RepoTopic>,
        date: Timestamp,
    )

Source from the content-addressed store, hash-verified

163 }
164
165 fn change(
166 &self,
167 topic: &RepoTopic,
168 parent_topics: &Vec<RepoTopic>,
169 child_links: &Vec<RepoLink>,
170 child_topics: &Vec<RepoTopic>,
171 date: Timestamp,
172 ) -> activity::Change {
173 let mut deleted_topic = activity::TopicInfo::from(topic);
174 deleted_topic.deleted = true;
175
176 activity::Change::DeleteTopic(activity::DeleteTopic {
177 actor_id: self.actor.user_id.to_owned(),
178 child_links: activity::LinkInfoList::from(child_links),
179 child_topics: activity::TopicInfoList::from(child_topics),
180 date,
181 deleted_topic,
182 id: activity::Change::new_id(),
183 parent_topics: activity::TopicInfoList::from(parent_topics),
184 })
185 }
186}
187
188pub struct RemoveTopicTimerange {

Callers 2

callMethod · 0.45
persist_repo_topicMethod · 0.45

Calls 9

insertMethod · 0.80
DeleteTopicClass · 0.70
UpdateTopicSynonymsClass · 0.70
UpsertTopicClass · 0.70
iterMethod · 0.45
is_emptyMethod · 0.45

Tested by

no test coverage detected