How can I query my subversion repository?

后端 未结 10 665
谎友^
谎友^ 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 05:42

    You can use svn log command to produce an XML file with a lot of information about all commits like this:

    svn log URL --xml --verbose > commits.xml
    

    There are some more options you can play with to limit the revision range, get more information on rev props, include merge info, etc.

    The problem then becomes "how do I perform queries on the content of an XML document", which is easier than working with the existing SVN APIs. For example, in C# you can do LINQ queries on XML.

提交回复
热议问题