SVN Post Commit Log Note


/ Published in: Bash
Save to your folder(s)



Copy this code and paste it in your HTML
  1. # Log subversion commits to a file. Useful for changelogs.
  2. #
  3. # one commit per-line, in the format:
  4. # UTC_DATE_STRING | author | commit message
  5. #
  6. # Will store the log inside the repo directory, in a file called "log"
  7.  
  8. REPOS="$1"
  9. REV="$2"
  10. LOG="log"
  11.  
  12. lognote=`svnlook date $REPOS`
  13. lognote="$lognote | `svnlook author $REPOS`"
  14. lognote="$lognote | `svnlook log $REPOS`"
  15.  
  16. echo $lognote >> ${REPOS}/${LOG}

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.