Using SVN post-commit hook to update only files that have been committed

前端 未结 4 1175
有刺的猬
有刺的猬 2020-12-08 02:49

I am using an SVN repository for my web development work. I have a development site set up which holds a checkout of the repository.

I have set up an SVN post-commi

4条回答
  •  不思量自难忘°
    2020-12-08 03:31

    You might use svnlook dirs-changed and svn up -N to update only the contents of each folder changed:

    cd /home/www/dev_ssl
    svnlook dirs-changed [REPOS] -r [REV] | xargs /usr/bin/svn up -N
    

    Or, if per-file might be better for you (using sed to strip action characters):

    svnlook changed [REPOS] -r [REV] | sed "s/^....//" | xargs /usr/bin/svn up
    

提交回复
热议问题