MCPcopy Index your code
hub / github.com/nodejs/node / FilterUnchangedFiles

Method FilterUnchangedFiles

deps/v8/tools/v8_presubmit.py:227–238  ·  view source on GitHub ↗
(self, files)

Source from the content-addressed store, hash-verified

225 sums_file.close()
226
227 def FilterUnchangedFiles(self, files):
228 changed_or_new = []
229 for file in files:
230 try:
231 handle = open(file, "rb")
232 file_sum = md5er(handle.read()).digest()
233 if not file in self.sums or self.sums[file] != file_sum:
234 changed_or_new.append(file)
235 self.sums[file] = file_sum
236 finally:
237 handle.close()
238 return changed_or_new
239
240 def RemoveFile(self, file):
241 if file in self.sums:

Callers 3

ProcessFilesMethod · 0.95
setUpMethod · 0.95
testCachesFilesMethod · 0.95

Calls 4

closeMethod · 0.65
openFunction · 0.50
readMethod · 0.45
appendMethod · 0.45

Tested by 2

setUpMethod · 0.76
testCachesFilesMethod · 0.76