Searching subversion history (full text)

前端 未结 16 1284
慢半拍i
慢半拍i 2020-11-29 16:29

Is there a way to perform a full text search of a subversion repository, including all the history?

For example, I\'ve written a feature that I used somewhere, but t

相关标签:
16条回答
  • 2020-11-29 17:16

    svn log -l<commit limit> | grep -C<5 or more lines> <search message>

    0 讨论(0)
  • 2020-11-29 17:17

    svn log in Apache Subversion 1.8 supports a new --search option. So you can search Subversion repository history log messages without using 3'rd party tools and scripts.

    svn log --search searches in author, date, log message text and list of changed paths.

    See SVNBook | svn log command-line reference.

    0 讨论(0)
  • 2020-11-29 17:18

    I don't have any experience with it, but SupoSE (open source, written in Java) is a tool designed to do exactly this.

    0 讨论(0)
  • 2020-11-29 17:19

    In case you are trying to determine which revision is responsible for a specific line of code, you are probably looking for:

    svn blame
    

    Credit: original answer

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