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

后端 未结 5 573
悲哀的现实
悲哀的现实 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:39

    #!/bin/bash
    # This is not a great solution, but it works for gathering the data
    
    CURRENT_REVISION=95300
    OLDEST_REVISION=93000
    URL="file:///home/svn/repo/project/dir/target.c"
    PROPERTY_NAME="svn:externals"
    
    for i in `seq $OLDEST_REVISION $CURRENT_REVISION`
    do
      svn -r$i propget "$PROPERTY_NAME" "$URL" | sed -e "s/^/$i\t/"
    done
    

提交回复
热议问题