martinvonz / jj

A Git-compatible VCS that is both simple and powerful
https://martinvonz.github.io/jj/
Apache License 2.0
9.49k stars 325 forks source link

fork_point() does not exist in 0.23.0 #5018

Closed frxstrem closed 17 hours ago

frxstrem commented 17 hours ago

Description

fork_point() is described in the docs as:

  • fork_point(x): The fork point of all commits in x. The fork point is the common ancestor(s) of all commits in x which do not have any descendants that are also common ancestors of all commits in x. It is equivalent to the revset heads(::x_1 & ::x_2 & ... & ::x_N), where x_{1..N} are commits in x. If x resolves to a single commit, fork_point(x) resolves to x.

However, fork_point() does not seem to work with the latest version of jj (0.23.0).

Steps to Reproduce the Problem

Run `jj log -r 'fork_point(@)'

Expected Behavior

A log with the current working copy.

Actual Behavior

Error: Failed to parse revset: Function "fork_point" doesn't exist
Caused by:  --> 1:1
  |
1 | fork_point(@)
  | ^--------^
  |
  = Function "fork_point" doesn't exist
Hint: Did you mean "working_copies"?

Specifications

frxstrem commented 17 hours ago

Nevermind, I realized this is only in the main branch docs, i.e. not yet released. Sorry! 🤦‍♀️