Commands › Reading the project's data
#journal-entries Reading the project's data
Gives a document's revisions, newest first, each with its index, date and label.
#journal-entries(
:
)Hover an argument: what it does. Hover its value: every possible value. A click keeps the bubble open.
documentoptional · default "rs"The document whose journal is read.
documentoptional · default "rs""rs"the statical report"cu"the service criteria agreement"bp"the basis of designautothe document being compiled, in a contextHover a value: its call and what it prints.
#repr(journal-entries(document: "rs").map(e => e.index))
What it prints
Prints the same as auto.
#repr(journal-entries(document: "cu").map(e => e.index))
What it prints
Prints the same as "bp".
#repr(journal-entries(document: "bp").map(e => e.index))
What it prints
Prints the same as "cu".
#context repr(journal-entries(document: auto).map(e => e.index))
What it prints
Prints the same as "rs".
Compiled once by Woodcore's engine, on the examples' frozen data.
The essentials
Data, not a displayIt returns a value: print it, compare it or loop over it.
By indexThe order follows the index, never the date: a typed date may be wrong.
The current revision
journal-entries().first() is the one the report is at.Arguments
| Argument | Status | What it does, and examples |
|---|---|---|
| The line's arguments | ||
| optional | The document whose journal is read. #journal-entries().len()the number of the report's revisions#context journal-entries(document: auto)the document being compiled | |
Lines to copy
Minimal call
#journal-entries()Complete call
#journal-entries(document: "rs")Examples
#journal-entries().len()#for e in journal-entries() [ Rev. #e.index — #e.label \ ]Defined in lib/calc-engine-records.typ:33