Compare with a version from repository could be done by using "Compare
With->URL..." action.
Replace with a version from repository could be done by using "Replace
With->URL..." action.
Another way to perform these operations is to use History View's pop-up
menu actions when History View is attached to resource which you want to
compare or replace with the specific revision.