Class HgConfig

java.lang.Object
org.apache.maven.scm.provider.hg.HgConfig

public class HgConfig extends Object
Check hg installation.
  • Field Details

  • Constructor Details

    • HgConfig

      HgConfig(File workingDir)
  • Method Details

    • isInstalled

      private boolean isInstalled()
      Returns:
      True if one can run basic hg commands
    • isComplete

      private boolean isComplete()
      Returns:
      True if all modules for hg are installed.
    • getHgVersion

      public static HgConfig.HgVersionConsumer getHgVersion(File workingDir) throws ScmException
      Throws:
      ScmException
    • compareVersion

      private static boolean compareVersion(String version1, String version2)
      Iterate through two dot-notation version strings, normalize them to the same length, then do alphabetic comparison
      Parameters:
      version1 -
      version2 -
      Returns:
      true if version2 is greater than version1
    • getInstalledStr

      private String getInstalledStr()
    • toString

      public String toString(File workingDir)