Enhancement
There is currently no way to compare two objects unversioned in TL-Script. When == comparing, a historical object is never equal to a current object. Correspondingly for two versions of the same object at different times.
Implementation
The TLScript function $obj1.equalsUnversioned($obj2) was introduced to compare two tl:TLObject 's unversioned.
Test
TestRevisionAccess.script.xml