Interface to compare nonconsecutive commits in rt server

Change-Id: Iba246013e9e466cb6da54ab4ace395f16b319d78