rules: fold the read-order comment onto its line (product size back to 3079 of 3080)
ci / test (push) Waiting to run
ci / test (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f7f37dffe3
commit
dec84678e9
1 file changed
+1
-3
+1
-3
@@ -210,9 +210,7 @@ def scope_lines(scope, cwd=None, migrate=True):
|
|||||||
if migrate:
|
if migrate:
|
||||||
return _migrate(cwd)[0]
|
return _migrate(cwd)[0]
|
||||||
dest, old = path(PROJECT, cwd), _legacy(cwd)
|
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
|
ls = lines(old) # store copy first: writers fill the project file before removing it, so a no-wait read never misses both
|
||||||
# copy, so a no-lock reader either reads the copy before it goes or knows the project file is already complete.
|
|
||||||
ls = lines(old)
|
|
||||||
raw = store.regular(dest, True)[1] if dest and not os.path.islink(os.path.dirname(dest)) else None
|
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 [])))
|
return list(dict.fromkeys(ls + ((_parse(raw.decode("utf-8", "replace"))) if raw is not None else [])))
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user