How do you get the history of a file/folder property in SVN?

后端 未结 5 575
悲哀的现实
悲哀的现实 2021-01-01 13:07

What\'s the easiest way to determine when a property was set on a file or folder? Basically, I\'m looking for an equivalent of \"svn blame\" that works on properties.

<
5条回答
  •  青春惊慌失措
    2021-01-01 13:29

    Using the propget or proplist commands seem to be really, really slow.

    For my purposes it was easy enough to do svn diff --properties-only on every revision and store it off. It stores enough information so that you can write some other scripts to do whatever comparing/blaming that is necessary without getting into the network shenanigans or whatever made propget/proplist so slow.

    #!/bin/bash
    
    # 7273 being the highest revision in my repository
    for j in {1..7273}; do
        i=$((j-1))
        echo "$i:$j"
        svn diff --properties-only -r $i:$j https://... > propdiff.$j.txt
    done
    

提交回复
热议问题