MCPcopy
hub / github.com/getsentry/sentry / _write_lockfile

Function _write_lockfile

tools/migrations/squash.py:258–266  ·  view source on GitHub ↗
(apps: list[App])

Source from the content-addressed store, hash-verified

256
257
258def _write_lockfile(apps: list[App]) -> None:
259 with open("migrations_lockfile.txt", encoding="UTF-8") as f:
260 lines = f.readlines()
261
262 with open("migrations_lockfile.txt", "w", encoding="UTF-8") as f:
263 f.writelines(lines[:6])
264 for app in apps:
265 if os.path.exists(app.squash_fname):
266 f.write(f"\n{app.name}: {app.squash_name}\n")
267
268
269def main() -> int:

Callers 1

mainFunction · 0.85

Calls 3

openFunction · 0.50
existsMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected