public String getCommandName() { Revision to = getTargetRevision(); String name = to.getChangeSetName(); String date = DateFormatUtil.formatDateTime(to.getTimestamp()); if (name != null) { return LocalHistoryBundle.message("system.label.revert.to.change.date", name, date); } else { return LocalHistoryBundle.message("system.label.revert.to.date", date); } }
public List<String> checkCanRevert() throws IOException { if (!askForReadOnlyStatusClearing()) { return Collections.singletonList( LocalHistoryBundle.message("revert.error.files.are.read.only")); } return Collections.emptyList(); }