Refactor getChangesetsByRevset