Subversion

コミット時に svn:author を書き換える

  • hooks/pre-revprop-change で svn:author の変更を許可 > if [ "$ACTION" = "M" -a "$PROPNAME" = "svn:author" ]; then exit 0; fi

  • hooks/post-commit で書き換える > /usr/local/bin/svn propset svn:author --revprop -r ${REV} "Jane Doe" file://${REPOS}

参考文献

Last edited by n13i, 2010-05-09 04:33:12