summaryrefslogtreecommitdiff
path: root/project/build/SVN.scala
diff options
context:
space:
mode:
Diffstat (limited to 'project/build/SVN.scala')
-rw-r--r--project/build/SVN.scala8
1 files changed, 4 insertions, 4 deletions
diff --git a/project/build/SVN.scala b/project/build/SVN.scala
index 6a64e727f9..427469eb64 100644
--- a/project/build/SVN.scala
+++ b/project/build/SVN.scala
@@ -14,7 +14,7 @@ class SVN(root: Path) {
* It assumes that svn or git is installed on the running computer. Return 0 if it was not
* able to found the revision number
*/
- def getRevisionNumber: Int = getSvn orElse getGit getOrElse 0
+ def getRevisionNumber: Int = getSvn orElse getGit getOrElse 0
def getSvn: Option[Int] = {
/** Doing this the hard way trying to suppress the svn error message
* on stderr. Could not figure out how to do it simply in sbt.
@@ -22,15 +22,15 @@ class SVN(root: Path) {
val pb = new java.lang.ProcessBuilder("svn", "info")
pb directory root.asFile
pb redirectErrorStream true
-
+
Process(pb).lines_! foreach {
case GitSvnRegex(rev) => return Some(rev.toInt)
case _ => ()
}
None
}
-
- def getGit: Option[Int] =
+
+ def getGit: Option[Int] =
try { Some(Process(GitSvnRevTool.toString, root).!!.trim.toInt) }
catch { case _: Exception => None }
}