def METHOD_NAME(repo_dir):
    """Get repository's current commit node ID (currently SHA1)."""
    node_id = subprocess.Popen(
        ["hg", "identify", "-i"] + args_enabling_topic,
        stdout=subprocess.PIPE,
        cwd=repo_dir,
    )
    return node_id.stdout.read().decode().strip()