fix defect hg.bat from package installation

This commit is contained in:
Sebastian Sdorra
2012-08-11 15:40:38 +02:00
parent 5882ae5542
commit 5e815cecc0
8 changed files with 548 additions and 9 deletions

View File

@@ -35,12 +35,15 @@ package sonia.scm.web;
//~--- non-JDK imports --------------------------------------------------------
import java.io.File;
import sonia.scm.SCMContext;
import sonia.scm.repository.HgConfig;
import sonia.scm.repository.HgPythonScript;
import sonia.scm.util.Util;
//~--- JDK imports ------------------------------------------------------------
import java.io.File;
/**
*
* @author Sebastian Sdorra
@@ -64,8 +67,8 @@ public class HgUtil
public static String getPythonPath(HgConfig config)
{
String pythonPath = Util.EMPTY_STRING;
if ( config != null )
if (config != null)
{
pythonPath = Util.nonNull(config.getPythonPath());
}
@@ -82,10 +85,10 @@ public class HgUtil
).getAbsolutePath()
);
//J+
return pythonPath;
}
/**
* Method description
*
@@ -97,7 +100,7 @@ public class HgUtil
public static String getRevision(String revision)
{
return Util.isEmpty(revision)
? REVISION_TIP
: revision;
? REVISION_TIP
: revision;
}
}