@staticmethod
  def GetHGRevision():
    """Attempts to retrieve the current mercurial revision number from the local
    filesystem.
    """
    filename = os.path.join(os.path.dirname(__file__), '../../hg_revision.txt')
    try:
      with open(filename) as f:
        return f.read().strip()
    except __HOLE__:
      return None
dataset/ETHPy150Open viewfinderco/viewfinder/backend/base/environ.py/ServerEnvironment.GetHGRevision