MCPcopy Create free account
hub / github.com/SolaWing/xcode-build-server / get_new_item

Function get_new_item

xclog_parser.py:319–328  ·  view source on GitHub ↗
(old_item)

Source from the content-addressed store, hash-verified

317 dealed = set()
318
319 def get_new_item(old_item):
320 if isinstance(old_item, dict):
321 ident = identifier(old_item)
322 if ident:
323 dealed.add(ident)
324
325 new_item = new_file_map.get(ident)
326 if new_item:
327 return new_item
328 return old_item
329
330 # 旧item中不变的, 以及被更新的,和新item中新添加的
331 final = [get_new_item(item) for item in old_items]

Callers 1

merge_databaseFunction · 0.85

Calls 2

identifierFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected