Skip to content

Commit

Permalink
[FIXED JENKINS-12525] Changes found every time it has an pull request.
Browse files Browse the repository at this point in the history
  • Loading branch information
sogabe committed Jan 31, 2012
1 parent 21adf64 commit 15a2394
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/main/java/hudson/scm/SubversionSCM.java
@@ -1,7 +1,7 @@
/*
* The MIT License
*
* Copyright (c) 2004-2011, Sun Microsystems, Inc., Kohsuke Kawaguchi, Fulvio Cavarretta,
* Copyright (c) 2004-2012, Sun Microsystems, Inc., Kohsuke Kawaguchi, Fulvio Cavarretta,
* Jean-Baptiste Quenot, Luca Domenico Milanesio, Renaud Bruyeron, Stephen Connolly,
* Tom Huybrechts, Yahoo! Inc., Manufacture Francaise des Pneumatiques Michelin,
* Romain Seguy, OHTAKE Tomohiro
Expand Down Expand Up @@ -161,6 +161,7 @@
import com.trilead.ssh2.DebugLogger;
import com.trilead.ssh2.SCPClient;
import com.trilead.ssh2.crypto.Base64;
import org.tmatesoft.svn.core.internal.util.SVNEncodingUtil;

/**
* Subversion SCM.
Expand Down Expand Up @@ -1104,9 +1105,17 @@ else if (project.getLastBuild()!=null) {

// are the locations checked out in the workspace consistent with the current configuration?
for (ModuleLocation loc : getLocations(env, lastCompletedBuild)) {
if (!baseline.revisions.containsKey(loc.getURL())) {
// baseline.revisions has URIdecoded URL
String url;
try {
url = loc.getSVNURL().toDecodedString();
} catch (SVNException ex) {
ex.printStackTrace(listener.error(Messages.SubversionSCM_pollChanges_exception(loc.getURL())));
return BUILD_NOW;
}
if (!baseline.revisions.containsKey(url)) {
listener.getLogger().println(
Messages.SubversionSCM_pollChanges_locationNotInWorkspace(loc.getURL()));
Messages.SubversionSCM_pollChanges_locationNotInWorkspace(url));
return BUILD_NOW;
}
}
Expand Down

0 comments on commit 15a2394

Please sign in to comment.