private static function getRevisionFrom($path)
    {
        $matches = [];
        preg_match(self::$revisionRegex, $path, $matches);

        $match = array_shift($matches);
        return substr($match, 0, 7);
    }