Fix problem with revisionInfo: fails badly for a developer with turtle SVN -- change it to fail gracefully.
This commit is contained in:
parent
939b33e42b
commit
b3d7f5469f
2 changed files with 3 additions and 2 deletions
|
@ -25,7 +25,8 @@ public class InfoResponseParser {
|
||||||
public InfoResponseParser(String infoResponse) {
|
public InfoResponseParser(String infoResponse) {
|
||||||
this.infoResponse = infoResponse;
|
this.infoResponse = infoResponse;
|
||||||
System.err.println("response from svn info: '"
|
System.err.println("response from svn info: '"
|
||||||
+ infoResponse.replace("\n", "\\n") + "'");
|
+ ((infoResponse == null) ? null : infoResponse.replace("\n",
|
||||||
|
"\\n")) + "'");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String parse() {
|
public String parse() {
|
||||||
|
|
|
@ -137,7 +137,7 @@ public class RevisionInfoBuilder {
|
||||||
}
|
}
|
||||||
|
|
||||||
private String buildDummyInfo() {
|
private String buildDummyInfo() {
|
||||||
return buildLine("unknown", "unknown");
|
return buildLine(null, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
private String buildLine(String release, String revision) {
|
private String buildLine(String release, String revision) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue