View Ticket
Not logged in
Ticket UUID: a410962b8eaf937cf0471c8e31b99fbdd3692931
Title: "fossil timeline ancestors current -n 1" does not always work
Status: Open Type: Code_Defect
Severity: Minor Priority:
Subsystem: Resolution:
Last Modified: 2010-01-06 22:01:19
Version Found In: [cd26978357] 2010-01-06
Description & Comments:
Maybe there is a better way, but I have scripts that parse the following command to get the SHA-1 of the current commit:

    fossil timeline ancestors current -n 1

However, the command above doesn't always produce output even if changing -n 1 to -n 2 does produce output. In this case, -n 2 only shows one commit.

I am able to reproduce this behavior in the SQLite fossil repository by checking out the commit for "Version 3.6.22" and running the command shown above.