From 0a16f7892ac6ef8aa26433db90d0ed78650765d0 Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 25 Jun 2012 15:45:29 +0000 Subject: [PATCH] - Remove the string "-r15897" from the title bar but not other SVN rev numbers. --- src/main/java/forge/model/BuildInfo.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/forge/model/BuildInfo.java b/src/main/java/forge/model/BuildInfo.java index 109571873fe..893e0676598 100644 --- a/src/main/java/forge/model/BuildInfo.java +++ b/src/main/java/forge/model/BuildInfo.java @@ -118,6 +118,14 @@ public class BuildInfo { result = manifestResult; } + // The code above will always return the SVN rev as "r15897" even with builds + // that are using a later revision for some unknown reason. This happens on + // Chris' dev system but not on Dave's dev system. We should note that many + // users are refering to the snapshot build by only using the SVS rev number + // and the code below may convince them to instead use the date of the archive. + if (result.endsWith("-r15897")) { + result = result.replace("-r15897", ""); + } return result; }