From dec84678e9ae761d0fb7205608c9a3d0a3cb03bb Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Wed, 2 Dec 2026 13:27:54 -0700 Subject: [PATCH] rules: fold the read-order comment onto its line (product size back to 3079 of 3080) Co-Authored-By: Claude Opus 5.5 --- sisi/rules.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sisi/rules.py b/sisi/rules.py index 69ccd92..dca2b25 100644 --- a/sisi/rules.py +++ b/sisi/rules.py @@ -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 [])))