Enhancement
There should be a TL-Model representation of the "Revision".
Implementation
The revision will have the qualified name tl.core:Revision. It has the following attributes:
- Revision(revision): The commit number of the revision.
- Date (date): The date on which the revision was created.
- Author(author): The access that created the revision, or null if the revision was created by the system.
- Message(log): The log message of the revision.
TLScript functions have also been introduced to work with revisions:
- revisionAt($date): Determination of the revision on a given date.
- revisionForCommit($commitNumber): Determining the revision for a given commit number.
- $object.revision(): The revision of a tl:TLObject.
- $object.inRevision($rev): The given subject object in a given revision.
- $object.inCurrent(): The given subject object in CURRENT.
- $object.createRevision(): The revision in which the subject object was created.
- $object.modifiedRevision(): The revision in which the subject object was last modified.
- currentRevision(): Revision CURRENT.
Code migration
- The signatures of FormContextModificator now use TLObject instead of wrappers. Implementations must be adapted accordingly.
Test
Tests for #27214.