how to detect modified properties using SVN log

后端 未结 5 399
旧时难觅i
旧时难觅i 2021-01-11 16:40

Background: writing an automated release script to export changed files between versions from SVN and upload to remote server.

The svn log command shows modified fil

5条回答
  •  花落未央
    2021-01-11 17:03

    Here is a script i just wrote to get a verbose log of all revisions in which property changes inside the current svn dir where done. Just place the right start and end version where you guess the propertychange happened. It's not very fast, but it works.

    #!/bin/bash
    # Show the verbose log of the revisions, where svn properties 
    # inside the current folder where added/removed
    startrev=4600
    endrev=4620
    for i in $(eval echo {$startrev..$endrev})
      do
        svn diff -c $i 2>/dev/null | grep "Property changes on" 1>/dev/null
        if [ $? == 0 ]; then
          echo "Property change in revision $i:"
          svn log -r $i --verbose
        fi
    done
    

提交回复
热议问题