How can I query my subversion repository?

后端 未结 10 725
谎友^
谎友^ 2021-01-31 05:08

Currently I would simply like to find all files that have not been modified in the last X days but ultimately I would like to be able to make more complex queries against my sub

10条回答
  •  春和景丽
    2021-01-31 06:02

    With Powershell you can do some nice querying on the log messages

    $data = [xml] (svn log -r "r1:r2" --xml)
    $data.log.logentry | where-object {$_.message -match "regex"}
    

    Or even on the files changed (with some required magic to avoid a well-known powershell issue)

    $diff = [xml] (svn diff -r "r1:r2" --xml --summarize | %{$_ -replace "item", "item1"})
    $diff.diff.paths.path | where-object {$_.item1 -eq "file"}
    

提交回复
热议问题