Skip to content

Instantly share code, notes, and snippets.

@cpelley
Created November 7, 2017 12:58
Show Gist options
  • Save cpelley/ea8644cb16cab43d1aa16b7a8c238c5f to your computer and use it in GitHub Desktop.
Save cpelley/ea8644cb16cab43d1aa16b7a8c238c5f to your computer and use it in GitHub Desktop.
svn diff of file renames (moves)
REPO_BRANCH_PATH=<relative_url>
OLD_REV=<old_revision>
NEW_REV=<new_revision>
OLD_PATH=("<file_path>" \
"<file_path2>" \
)
NEW_PATH=("<file_path_new>" \
"<file_path2_new>" \
)
i=0
while [ $i -lt ${#OLD_PATH[*]} ]; do
svn diff --old ${REPO_BRANCH_PATH}/${OLD_PATH[$i]}@${OLD_REV} --new ${REPO_BRANCH_PATH}/${NEW_PATH[$i]}@${NEW_REV}
i=$(( $i + 1));
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment