How do I search all revisions of a file in a SubVersion repository?

前端 未结 7 2009
深忆病人
深忆病人 2020-12-08 19:32

I\'d like to grep all revisions of a file for a string. e.g. to find when a function was added or removed.

Is there a \"simple\" way to do this? (i.e.

相关标签:
7条回答
  • 2020-12-08 20:33

    The "annotate/blame" command does not do exactly what you want, but it could help:

    svn blame — Show author and revision information in-line for the specified files or URLs.

     $ svn blame http://svn.red-bean.com/repos/test/readme.txt
     3      sally This is a README file.
     5      harry You should read this.
    

    So, you should be able to find out who added a function. As for finding out who deleted a function, no idea.

    0 讨论(0)
提交回复
热议问题