Skip to content

Conversation

@bts
Copy link
Contributor

@bts bts commented Oct 23, 2025

Context

This is part of a series of changes to make most methods on index traits (i.e. ChangeIdIndex, MutableIndex, ReadonlyIndex, Index) fallible. The changes will enable networked implementations of these traits, which can produce I/O errors during operation. See #7825 for more information.

This is a follow-up to #7799, #7823, and #7830.

Changes

These two changes convert the Index trait methods shortest_unique_commit_id_prefix_len and resolve_commit_id_prefix to return IndexResult.

@bts bts requested a review from a team as a code owner October 23, 2025 19:44
@bts bts force-pushed the bts/fallible-commit-prefix branch 2 times, most recently from 1ff6768 to 092e0d5 Compare October 23, 2025 21:22
bts added 2 commits October 23, 2025 21:09
This is part of a series of changes to make most methods on index traits
(i.e. `ChangeIdIndex`, `MutableIndex`, `ReadonlyIndex`, `Index`)
fallible. This will enable networked implementations of these traits,
which may produce I/O errors during operation. See jj-vcs#7825 for more
information.
This is part of a series of changes to make most methods on index traits
(i.e. `ChangeIdIndex`, `MutableIndex`, `ReadonlyIndex`, `Index`)
fallible. This will enable networked implementations of these traits,
which may produce I/O errors during operation. See jj-vcs#7825 for more
information.
@bts bts force-pushed the bts/fallible-commit-prefix branch from 092e0d5 to 36e0e90 Compare October 24, 2025 01:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant