Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix broken constructor in tests

  • Loading branch information...
commit 427c5b7501718c551fe07f530932e5b9845fd40b 1 parent 21d6df9
@ndeloof authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/main/java/hudson/plugins/mercurial/MercurialSCM.java
View
8 src/main/java/hudson/plugins/mercurial/MercurialSCM.java
@@ -19,6 +19,7 @@
import hudson.plugins.mercurial.build.BuildData;
import hudson.plugins.mercurial.build.BuildChooser;
import hudson.plugins.mercurial.build.BuildChooserDescriptor;
+import hudson.plugins.mercurial.build.DefaultBuildChooser;
import hudson.remoting.VirtualChannel;
import hudson.scm.ChangeLogParser;
import hudson.scm.PollingResult;
@@ -101,8 +102,13 @@
private BuildChooser buildChooser;
+ public MercurialSCM(String installation, String source, String branch, String modules, String subdir, HgBrowser browser, boolean clean) {
+ this(installation, source, branch, modules, subdir, browser, clean, new DefaultBuildChooser());
+ }
+
+
@DataBoundConstructor
- public MercurialSCM(String installation, String source, String branch, String modules, String subdir, HgBrowser browser, boolean clean, boolean forest, BuildChooser buildChooser) {
+ public MercurialSCM(String installation, String source, String branch, String modules, String subdir, HgBrowser browser, boolean clean, BuildChooser buildChooser) {
this.installation = installation;
this.source = Util.fixEmptyAndTrim(source);
this.modules = Util.fixNull(modules);
Please sign in to comment.
Something went wrong with that request. Please try again.