Skip to content

Instantly share code, notes, and snippets.

@cmaggiulli
Created August 9, 2021 14:19
Show Gist options
  • Select an option

  • Save cmaggiulli/2acdd28b75dca64b89366884437fce29 to your computer and use it in GitHub Desktop.

Select an option

Save cmaggiulli/2acdd28b75dca64b89366884437fce29 to your computer and use it in GitHub Desktop.
Produces an svn change report
#!/bin/bash
CHANGE_REPORT=./change-report.log
echo "Change list report for the last 7 days" > ${CHANGE_REPORT}
DATE=`date`
echo "Changes as of ${DATE}" >> ${CHANGE_REPORT}
echo "======================================" >> ${CHANGE_REPORT}
START_DATE=`date +"%Y-%m-%d" -d "7 days ago"`
END_DATE=`date +"%Y-%m-%d" -d "tomorrow"`
# Checking out empty directory to run svn commands against
svn --username $0 --password "$1" --no-auth-cache co https://svn.int.domain.edu/repo empty --depth empty
# Grabbing the commit history from empty dir
svn --username $0 --password "$1" --no-auth-cache log -v -r '{'${START_DATE}'}':'{'${END_DATE}'}' ./empty >> ${CHANGE_REPORT}
cat ${CHANGE_REPORT}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment