mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 07:55:47 +01:00
execute HgHealthCheck only for mercurial repositories
This commit is contained in:
@@ -97,4 +97,20 @@ public final class HgHealthCheck extends DirectoryHealthCheck
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
//~--- get methods ----------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Returns {@code true} if the repository is from type mercurial.
|
||||
*
|
||||
*
|
||||
* @param repository repository for the health check
|
||||
*
|
||||
* @return {@code true} for a mercurial repository
|
||||
*/
|
||||
@Override
|
||||
protected boolean isCheckResponsible(Repository repository)
|
||||
{
|
||||
return HgRepositoryHandler.TYPE_NAME.equalsIgnoreCase(repository.getType());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user