Package megamek

Class Revision

java.lang.Object
megamek.Revision

public final class Revision extends Object
This class contains static methods to obtain the current code revision hashCode of all three programs.

The code revision can be used to check out the precise point in the code when available from a log file.

In the IDE, revisions may not be fully available. E.g. when working in MML, the MM directories are not used.

  • Method Details

    • mmRevision

      public static String mmRevision()
      Returns:
      The current MM code revision (e.g. "eba3a49e1006e51b16db12446caf5e43f57a18a7"), or "Unknown" if not available.
    • mmlRevision

      public static String mmlRevision()
      Returns:
      The current MML code revision (e.g. "eba3a49e1006e51b16db12446caf5e43f57a18a7"), or "Unknown" if not available.
    • mhqRevision

      public static String mhqRevision()
      Returns:
      The current MHQ code revision (e.g. "eba3a49e1006e51b16db12446caf5e43f57a18a7"), or "Unknown" if not available.