Example #1
0
 public static boolean anyRepositoryIsFresh(Collection<? extends Repository> repositories) {
   for (Repository repository : repositories) {
     if (repository.isFresh()) {
       return true;
     }
   }
   return false;
 }
Example #2
0
 @NotNull
 public static String getShortRepositoryName(@NotNull Repository repository) {
   return getShortRepositoryName(repository.getProject(), repository.getRoot());
 }
Example #3
0
 @Override
 public void consume(Object dummy) {
   if (!Disposer.isDisposed(myRepository)) {
     myRepository.update();
   }
 }
Example #4
0
 @Override
 public int compare(Repository o1, Repository o2) {
   return o1.getPresentableUrl().compareTo(o2.getPresentableUrl());
 }