how to detect modified properties using SVN log

后端 未结 5 397
旧时难觅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:01

    I think the only way is to actually parse the diff output for each revistion, though that seems rather brittle, and probably very slow...

    This is how a diff entry looks for a file with only changed properties:

    c:\test\wc>svn diff -c 3
    
    Property changes on: test.txt
    ___________________________________________________________________
    Added: test
       + test
    

    This is how a diff entry looks for a file with changed contents AND changed properties:

    c:\test\wc>svn diff -c 4
    Index: test.txt
    ===================================================================
    --- test.txt    (revision 3)
    +++ test.txt    (revision 4)
    @@ -1 +1,2 @@
    
    +asdfads
    
    Property changes on: test.txt
    ___________________________________________________________________
    Added: someproperty
       + somepropertyvalue
    

提交回复
热议问题