svnsvn-hookspost-commit-hook

SVN post commit: Who is the user that committed?


In an SVN post commit hook, how can I get the user who executed the commit?


Solution

  • Using the svnlook command with author. For example, in a shell script, it might be:

    REPOS="$1"
    REV="$2"
    
    AUTHOR="$(svnlook author -r $REV $REPOS)"