Skip to content

FR: jj log should indicate when hidden remote bookmarks exist? #6166

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
neongreen opened this issue Mar 28, 2025 · 1 comment
Open

FR: jj log should indicate when hidden remote bookmarks exist? #6166

neongreen opened this issue Mar 28, 2025 · 1 comment

Comments

@neongreen
Copy link
Contributor

A coworker had a local bookmark foo and a remote branch foo@origin. The bookmark wasn’t tracking the remote branch, because they didn’t know about jj bookmark track.

The commit corresponding to foo@origin was showing up as immutable. I suppose it was because of a remote bookmark pointing to it? but I didn’t realize the remote bookmark even existed.

Three solutions come to mind:

  • jj show for immutable commits could always mention why exactly they are immutable. This seems tricky if the user redefines immutable_heads.
  • Or jj log could somehow indicate that remote bookmarks exist, even if untracked.
  • Or there should be a warning when an untracked remote bookmark with the same name as local bookmark exists?

FWIW I’m not 100% sure my recollection is accurate. If it turns out jj log does show untracked remote bookmarks, I’ve no idea what went wrong

@yuja
Copy link
Contributor

yuja commented Mar 29, 2025

The default jj log output hides immutable revisions as "uninteresting". If untracked remote bookmarks should be included in jj log (or they should be considered mutable), the user will have to configure either revsets.log or revset-aliases.'immutable_heads()'.

https://jj-vcs.github.io/jj/latest/config/#log

I have no idea how this could be presented to new users. It would be too verbose if jj log/show printed things which are intentionally excluded from the output.

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

No branches or pull requests

2 participants