Replace pathspec with revlist