The "test-shortest-path" command:
Usage: fossil test-shortest-path ?--no-merge? VERSION1 VERSION2
Report the shortest path between two check-ins. If the --no-merge flag is used, follow only direct parent-child paths and omit merge links.
Help: test-shortest-path
Report the shortest path between two check-ins. If the --no-merge flag is used, follow only direct parent-child paths and omit merge links.