rules: fold the read-order comment onto its line (product size back to 3079 of 3080)
ci / test (push) Waiting to run

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Opus 5.5 committed 2026-12-02 13:27:54 -07:00
1 parent f7f37dffe3
commit dec84678e9
1 file changed
+1 -3
+1 -3
View File
@@ -210,9 +210,7 @@ def scope_lines(scope, cwd=None, migrate=True):
if migrate:
return _migrate(cwd)[0]
dest, old = path(PROJECT, cwd), _legacy(cwd)
# The store copy first, the project file second: `_move` writes the project file before it removes the store
# copy, so a no-lock reader either reads the copy before it goes or knows the project file is already complete.
ls = lines(old)
ls = lines(old) # store copy first: writers fill the project file before removing it, so a no-wait read never misses both
raw = store.regular(dest, True)[1] if dest and not os.path.islink(os.path.dirname(dest)) else None
return list(dict.fromkeys(ls + ((_parse(raw.decode("utf-8", "replace"))) if raw is not None else [])))