enhancement
There is currently no way to compare two unversioned objects in TL-Script. In a == comparison, a historical object is never equal to a current object. The same applies to two versions of the same object at different points in time.
Implementation
The TLScript function $obj1.equalsUnversioned($obj2) has been introduced to compare two tl:TLObjects without considering versioning.
Test
TestRevisionAccess.script.xml