Commit e1d8c54
Correct five inaccurate claims in the physical_key comments
Review of c3a9243 found five comments whose stated mechanism does not
match the code:
- `install_paths` doc claimed retaining the remote `s3://` key is what
lets a push skip the re-upload. It is not — `matches_content` compares
logical_key/hash/size only, so dedup is identical with `file://` keys.
Also dropped the "installed rows keep the remote `s3://` key" framing:
this function copies rows verbatim, and the installed manifest it is
handed carries `file://` for locally committed paths. Recorded the live
consequence instead — the caching call parses `physical_key` as an
`S3Uri`, so an uncached `file://` row errors rather than being fetched.
- `push_package_impl` claimed a later pull or reset clears the stale
`file://` keys. Neither can: both short-circuit when `latest` is the
hash just pushed. They clear only when another client publishes.
- `tag_timestamp`'s collision note read as if the second-pushed revision
loses its history entry; it is the first.
- `upload_row`'s doc credited the `file://` scheme check with keeping
local keys out of published manifests. That comes from the
`remote_url` rewrite plus the content-match branch; the check guards
the input, and for `s3://` keys `to_file_path` would fail anyway.
Comments only; no behavior change.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent c3a9243 commit e1d8c54
3 files changed
Lines changed: 31 additions & 32 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | | - | |
78 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
79 | 81 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
92 | 88 | | |
93 | 89 | | |
94 | 90 | | |
| |||
166 | 162 | | |
167 | 163 | | |
168 | 164 | | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
173 | 168 | | |
174 | 169 | | |
175 | 170 | | |
| |||
178 | 173 | | |
179 | 174 | | |
180 | 175 | | |
181 | | - | |
| 176 | + | |
182 | 177 | | |
183 | 178 | | |
184 | 179 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
237 | 239 | | |
238 | 240 | | |
239 | 241 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
109 | | - | |
110 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
204 | 206 | | |
205 | 207 | | |
206 | 208 | | |
| |||
0 commit comments