SVN export just the changed files from tags

前端 未结 6 926
挽巷
挽巷 2021-02-09 20:23

Does anyone know how to export only the changed files from two tags using svn?

Lets say I have tag 1.0 and then later fix bugs in the trunk. Next I am ready for a new

6条回答
  •  臣服心动
    2021-02-09 20:45

    Based on Stefan's idea:

    REV=123456
    URL=https://...
    BASEDIR=some_dir
    svn diff --summarize -c $REV $URL | while read A B; do 
        svn cat -r $REV $B > ${B##*$BASEDIR}
    done
    

提交回复
热议问题