comparison mercurial-server/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/MercurialVcsSupport.java @ 877:45311425ee3c

Remove unused field HgPathProvider wasn't used in OperationContext. Remove it from all the places where it was needed only to create the context.
author Dmitry Neverov <dmitry.neverov@jetbrains.com>
date Fri, 03 Oct 2014 22:29:27 +0200
parents b2816067699a
children c0c1a3f4b6f7
comparison
equal deleted inserted replaced
876:b2816067699a 877:45311425ee3c
56 */ 56 */
57 public class MercurialVcsSupport extends ServerVcsSupport implements LabelingSupport, VcsFileContentProvider, BuildPatchByCheckoutRules { 57 public class MercurialVcsSupport extends ServerVcsSupport implements LabelingSupport, VcsFileContentProvider, BuildPatchByCheckoutRules {
58 private final VcsOperationProgressProvider myProgressProvider; 58 private final VcsOperationProgressProvider myProgressProvider;
59 private final MirrorManager myMirrorManager; 59 private final MirrorManager myMirrorManager;
60 private final ServerPluginConfig myConfig; 60 private final ServerPluginConfig myConfig;
61 private final HgPathProvider myHgPathProvider;
62 private final RepoFactory myRepoFactory; 61 private final RepoFactory myRepoFactory;
63 private final HgVcsRootFactory myHgVcsRootFactory; 62 private final HgVcsRootFactory myHgVcsRootFactory;
64 private final FileFilter myIgnoreDotHgFilter = new IgnoreDotHgFilter(); 63 private final FileFilter myIgnoreDotHgFilter = new IgnoreDotHgFilter();
65 private final FileFilter myAcceptAllFilter = new AcceptAllFilter(); 64 private final FileFilter myAcceptAllFilter = new AcceptAllFilter();
66 private final HgTestConnectionSupport myTestConnection; 65 private final HgTestConnectionSupport myTestConnection;
69 68
70 public MercurialVcsSupport(@NotNull final VcsOperationProgressProvider progressProvider, 69 public MercurialVcsSupport(@NotNull final VcsOperationProgressProvider progressProvider,
71 @NotNull final EventDispatcher<ServerListener> dispatcher, 70 @NotNull final EventDispatcher<ServerListener> dispatcher,
72 @NotNull final ResetCacheRegister resetCacheHandlerManager, 71 @NotNull final ResetCacheRegister resetCacheHandlerManager,
73 @NotNull final ServerPluginConfig config, 72 @NotNull final ServerPluginConfig config,
74 @NotNull final HgPathProvider hgPathProvider,
75 @NotNull final RepoFactory repoFactory, 73 @NotNull final RepoFactory repoFactory,
76 @NotNull final MirrorManager mirrorManager, 74 @NotNull final MirrorManager mirrorManager,
77 @NotNull final HgVcsRootFactory hgVcsRootFactory, 75 @NotNull final HgVcsRootFactory hgVcsRootFactory,
78 @NotNull final HgTestConnectionSupport testConnection, 76 @NotNull final HgTestConnectionSupport testConnection,
79 @NotNull final SubrepoCheckoutRulesProvider subrepoCheckoutRulesProvider) { 77 @NotNull final SubrepoCheckoutRulesProvider subrepoCheckoutRulesProvider) {
80 myProgressProvider = progressProvider; 78 myProgressProvider = progressProvider;
81 myConfig = config; 79 myConfig = config;
82 myMirrorManager = mirrorManager; 80 myMirrorManager = mirrorManager;
83 myHgPathProvider = hgPathProvider;
84 myRepoFactory = repoFactory; 81 myRepoFactory = repoFactory;
85 myHgVcsRootFactory = hgVcsRootFactory; 82 myHgVcsRootFactory = hgVcsRootFactory;
86 myTestConnection = testConnection; 83 myTestConnection = testConnection;
87 mySubrepoCheckoutRulesProvider = subrepoCheckoutRulesProvider; 84 mySubrepoCheckoutRulesProvider = subrepoCheckoutRulesProvider;
88 resetCacheHandlerManager.registerHandler(new MercurialResetCacheHandler(myMirrorManager)); 85 resetCacheHandlerManager.registerHandler(new MercurialResetCacheHandler(myMirrorManager));
622 return this; 619 return this;
623 } 620 }
624 621
625 @NotNull 622 @NotNull
626 public MercurialCollectChangesPolicy getCollectChangesPolicy() { 623 public MercurialCollectChangesPolicy getCollectChangesPolicy() {
627 return new MercurialCollectChangesPolicy(myProgressProvider, this, myConfig, myHgVcsRootFactory, myRepoFactory, myHgPathProvider); 624 return new MercurialCollectChangesPolicy(myProgressProvider, this, myConfig, myHgVcsRootFactory, myRepoFactory);
628 } 625 }
629 626
630 627
631 @NotNull 628 @NotNull
632 public BuildPatchPolicy getBuildPatchPolicy() { 629 public BuildPatchPolicy getBuildPatchPolicy() {