Closed Veykril closed 2 weeks ago
Perhaps, we'll need to remove the assertion anyway. User can configure short-prefixes to include e.g. remote_branches()
.
Hidden changes should never be addressable by their change id, I think. Unless that check can be hit with a commit id, I think hitting the check is always a bug.
It might be reachable because of https://github.com/martinvonz/jj/issues/3861 and other versions of #2193, though.
So, I don't know if the check should stay, but off the top of my head, I think that if including remote_branches()
in the short prefixes list causes it to be hit, it's a bug.
Description
I managed to somehow have a hidden change checked out, but I do not know how I managed to do so (and forgot to snapshot my op log at the tim). Then for fun I tried
jj edit @
which caused the following panic:Steps to Reproduce the Problem
Unfortunately I don't know what exactly I did aside from trying to resolve conflicts between two remote branches.
Expected Behavior
Afaik one shouldnt be able to check out hidden changes
Actual Behavior
Managed to check out a hidden change
Specifications