This version of Unity is unsupported.

UndoRedoInfo.isRedo

public bool isRedo;

Description

Indicates whether the UndoRedoEvent is an undo or redo event. isRedo is true if the event is a Redo event.