@linzhp why did you remove MAX() function from **path_query**?  MAX() function is required to get the last file link at a given commit/revision because, for unknown reasons, a file can have 2 links in the same revison. See issue #3