FR: search for and highlight matching revset patterns
Is your feature request related to a problem? Please describe.
Jujutsu and jjui are awesome, as are revsets, but it's hard for newcomers to visualize what a particular revset means in a particular tree.
For example, I maintain a set of patches (bookmarked push-*) on top of an open source project, in the pattern described in Steve's Jujutsu Tutorial:
This is all beautiful, until upstream merges some of my patches:
I now need to rebase push-* branches onto the new upstream (master@tom), but only those that aren't already merged.
After a lot of thought, I figure out a revset expression that identifies unmerged branches: [email protected]_bookmarks(glob:"push-*"):
and I wrangle that into a rebase expression: jj rebase -s 'all:roots([email protected]_bookmarks(glob:"push-*"))' -d master@tom
Describe the solution you'd like
It would be amazing if jjui allowed one to search for a revset, like [email protected]_bookmarks(glob:"push-*"), and highlighted matched commits, e.g. here in a different colour:
Describe alternatives you've considered
I don't know any other "visualize this revset in this tree" utility.
Why current features fail to cover this request
While -L can limit revsets shown, it doesn't let one visualize a revset's matches within a tree.
Hey, thanks for the detailed explanation.
This is an interesting feature request. I cannot guarantee anything, but I will play with the idea to see if it is even feasible to do.