コード例 #1
0
 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);
   }
 }
コード例 #2
0
 public List<String> checkCanRevert() throws IOException {
   if (!askForReadOnlyStatusClearing()) {
     return Collections.singletonList(
         LocalHistoryBundle.message("revert.error.files.are.read.only"));
   }
   return Collections.emptyList();
 }