Log entries are built in one sized step c6e69e4b8d8f
Refs #94
- Author
- Andy McCall @andymccall <[email protected]>
- via
- agent
Claude Code <[email protected]> · delegate for changes, until 2026-11-13 19:00Z · key ea5f78160088
- When
- · 2026-10-17 03:55 UTC
- Signature
- ✔ signed by Claude Code
- Hash
c6e69e4b8d8f6fe6e7bec5dabc9d471c19c32bc457e05de8975a45100349af44- Depends on
- 252e8cb23fbc 4d6c9c1b358c 75167672ebcd 79b5a90ffd43 982864068a59
- Depended on by
- nothing yet
- In bookmarks
- carried-not-removed doctor-trust identical-sides keyless-tags main merge-remote-bookmark paths-for-resolutions-and-amend push-notes show-stat subrepo-pin-state
- In tags
- v0.10.0 v0.11.0 v0.4.4 v0.4.5 v0.4.6 v0.5.0 v0.5.1 v0.6.0 v0.7.0 v0.8.0 v0.9.0
- Edits
- 2 atoms, 0 tree operations, 1 file
Browse the tree at this change
modified crates/oxy-core/src/repo/mod.rs +6 −8
| … | 1882 unchanged lines |
||
| 1883 | 1883 | } |
|
| 1884 | 1884 | metas |
|
| 1885 | 1885 | }; |
|
| 1886 | - | for (h, meta) in metas { |
|
| 1887 | - | entries.push(LogEntry { |
|
| 1888 | - | hash: h, |
|
| 1889 | - | change: meta, |
|
| 1890 | - | is_working_copy: h == wc_hash, |
|
| 1891 | - | is_head: head_set.contains(&h), |
|
| 1892 | - | }); |
|
| 1893 | - | } |
|
| 1886 | + | entries.extend(metas.into_iter().map(|(h, meta)| LogEntry { |
|
| 1887 | + | hash: h, |
|
| 1888 | + | change: meta, |
|
| 1889 | + | is_working_copy: h == wc_hash, |
|
| 1890 | + | is_head: head_set.contains(&h), |
|
| 1891 | + | })); |
|
| 1894 | 1892 | let _sorting = crate::timing::phase("log: sort"); |
|
| 1895 | 1893 | // The hash makes the order total, so an unstable sort gives the same. |
|
| 1896 | 1894 | entries.sort_unstable_by(|a, b| { |
|
| … | 417 unchanged lines |