Skip to content
Discussion options

You must be logged in to vote

Revisions are immutable if it has a descendant in immutable_heads(). So, if you have an immutable revision REV, there must be an immutable head somewhere in REV::.

You can see what's making it immutable with the following command:

jj log -r 'REV | roots(REV:: & immutable_heads())'

Explaining this revset from the beginning:

Revset expression                       Explanation
--------------------------------------  --------------------------------------------------------------
            REV::                       Include a revision and all its descendants...

            REV:: & immutable_heads()   ...which are immutable heads

      roots(REV:: & immutable_heads())  Only show the "firs…

Replies: 2 comments 5 replies

Comment options

jennings
Feb 12, 2025
Collaborator Author

You must be logged in to vote
4 replies
@joyously
Comment options

@hotsphink
Comment options

@arxanas
Comment options

@bryceberger
Comment options

Answer selected by jennings
Comment options

You must be logged in to vote
1 reply
@jennings
Comment options

jennings Jun 26, 2025
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
6 participants