refactored exportRevision.sh