MCPcopy
hub / github.com/tirth8205/code-review-graph / on_deleted

Method on_deleted

code_review_graph/incremental.py:1123–1138  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

1121 self._schedule(event.src_path)
1122
1123 def on_deleted(self, event):
1124 if event.is_directory:
1125 return
1126 # Only handle files we would normally track
1127 try:
1128 rel = str(Path(event.src_path).relative_to(repo_root))
1129 except ValueError:
1130 return
1131 if _should_ignore(rel, ignore_patterns):
1132 return
1133 try:
1134 store.remove_file_data(event.src_path)
1135 store.commit()
1136 logger.info("Removed: %s", rel)
1137 except Exception as e:
1138 logger.error("Error removing %s: %s", rel, e)
1139
1140 def _schedule(self, abs_path: str):
1141 """Add file to pending set and reset the debounce timer."""

Callers

nothing calls this directly

Calls 3

_should_ignoreFunction · 0.85
remove_file_dataMethod · 0.80
commitMethod · 0.80

Tested by

no test coverage detected