/Engine/Source/Developer/SourceControl/Public/ISourceControlState.h
Get the size of the history. If anFUpdateStatusoperation has been called with the ShouldUpdateHistory() set, there should be history present if the file has been committed to source control.
the number of items in the history
int32 GetHistorySize() const