diff mercurial-server/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/ServerPluginConfigImpl.java @ 565:844fc8f99c29 Faradi-7.1.x

Add ability to limit number of nodes in DAG
author Dmitry Neverov <dmitry.neverov@jetbrains.com>
date Wed, 06 Mar 2013 16:56:57 +0400
parents 8eb05f24d883
children a7719626703d
line wrap: on
line diff
--- a/mercurial-server/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/ServerPluginConfigImpl.java	Wed Mar 06 15:49:37 2013 +0400
+++ b/mercurial-server/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/ServerPluginConfigImpl.java	Wed Mar 06 16:56:57 2013 +0400
@@ -51,6 +51,10 @@
     return timeout > 0 ? timeout : DEFAULT_PULL_TIMEOUT_SECONDS;
   }
 
+  public int getMaxDagNodesCount() {
+    return TeamCityProperties.getInteger("teamcity.hg.maxDagNodesCount", 0);
+  }
+
   @NotNull
   public Set<Long> getRevsetParentRootIds() {
     String parentRootIds = TeamCityProperties.getProperty("teamcity.hg.use.revsets.root.ids", "");