Permalink
Browse files

AbstractBuild#poll() already handle this case to run the first build

  • Loading branch information...
1 parent 1dd0480 commit 873d4b3a2736c61b645ad4ea196854a1a15c53b4 @ndeloof committed Nov 10, 2011
Showing with 0 additions and 4 deletions.
  1. +0 −4 src/main/java/hudson/plugins/mercurial/MercurialSCM.java
@@ -252,10 +252,6 @@ protected PollingResult compareRemoteRevisionWith(AbstractProject<?, ?> project,
TaskListener listener, SCMRevisionState _baseline) throws IOException, InterruptedException {
final AbstractBuild lastBuild = project.getLastBuild();
- if (lastBuild == null) {
- // If we've never been built before, well, gotta build!
- return PollingResult.BUILD_NOW;
- }
MercurialTagAction baseline = (MercurialTagAction)_baseline;
PrintStream output = listener.getLogger();

0 comments on commit 873d4b3

Please sign in to comment.