Issue number: 826

Provide a useful error message


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@4813 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
jbq committed 2007-09-19 13:12:53 +00:00
1 parent c1f7ee6dda
commit ef2e13bbf4
2 files changed
+5 -1

No files matched your search

@@ -96,6 +96,10 @@ final class SubversionChangeLogBuilder {
return false;
}
Long thisRev = thisRevisions.get(url);
if (thisRev == null) {
listener.error("No revision found for URL: " + url + " in " + SubversionSCM.getRevisionFile(build) + ". Revision file contains: " + thisRevisions.keySet());
return true;
}
if(thisRev.equals(prevRev)) {
logger.println("no change for "+url+" since the previous build");
return false;
@@ -555,7 +555,7 @@ public class SubversionSCM extends SCM implements Serializable {
/**
* Gets the file that stores the revision.
*/
private static File getRevisionFile(AbstractBuild build) {
public static File getRevisionFile(AbstractBuild build) {
return new File(build.getRootDir(),"revision.txt");
}