Re: Full text search
We have hound setup and it is nice but it only indexes the HEAD commit and so it isn’t useful for searching history. > On Nov 29, 2021, at 5:30 PM, Mark Phippard wrote: > > On Mon, Nov 29, 2021 at 10:19 AM Luke Mauldin wrote: >> >> I saw the —search argument but that only searches commit metadata. I would >> like to do a search of the changed text of the files in the commit. > > Ah, I missed that in your original post. I would suggest using a code > search tool like OpenGrok or Hound: > > https://github.com/oracle/opengrok/wiki/How-to-setup-OpenGrok > https://github.com/hound-search/hound > > Mark
Re: Full text search
On Mon, Nov 29, 2021 at 10:19 AM Luke Mauldin wrote: > > I saw the —search argument but that only searches commit metadata. I would > like to do a search of the changed text of the files in the commit. Ah, I missed that in your original post. I would suggest using a code search tool like OpenGrok or Hound: https://github.com/oracle/opengrok/wiki/How-to-setup-OpenGrok https://github.com/hound-search/hound Mark
Re: Full text search
On Mon, Nov 29, 2021 at 10:10 AM Luke Mauldin wrote: > Is there a recommended way to do a full text search of commits that > include changed text. For example if I wanted “svn log” to show me all of > that commits that have an added or deleted line that contains “foo”, is > that possible? Git has similar functionality in “git log -S foo” > Using “svn diff -r:HEAD | grep foo” gets me close but that just gives me > the lines that changed and not the commit that they changed. 'svn log' has a --diff option. Together with a revision range, that will output commit log together with the changes in that commit (though be aware if server access is slow and you request a large range it could be slow). Perhaps 'svn blame' will be helpful in addition or instead? Nathan
Re: Full text search
I think he wants to search for file content, not for a commit message. So for example "Was our supersecret password ever commited to code anywhere?" I do not think svn has a build in function to do that easily/fast. You can write a script that counts up, gets the diff from svn for that revision and run grep or awk on it. Might take ages. There are (paid) thirdparty tools whicht can index your repository and provide fast search (fisheye for example) Building an index also can take ages. Best regards, Thorsten Am 29/11/2021 um 16:10 schrieb Luke Mauldin: Is there a recommended way to do a full text search of commits that include changed text. For example if I wanted “svn log” to show me all of that commits that have an added or deleted line that contains “foo”, is that possible? Git has similar functionality in “git log -S foo” Using “svn diff -r:HEAD | grep foo” gets me close but that just gives me the lines that changed and not the commit that they changed.
Re: Full text search
I saw the —search argument but that only searches commit metadata. I would like to do a search of the changed text of the files in the commit. > On Nov 29, 2021, at 9:14 AM, Mark Phippard wrote: > > On Mon, Nov 29, 2021 at 10:10 AM Luke Mauldin wrote: >> >> Is there a recommended way to do a full text search of commits that include >> changed text. For example if I wanted “svn log” to show me all of that >> commits that have an added or deleted line that contains “foo”, is that >> possible? Git has similar functionality in “git log -S foo” >> Using “svn diff -r:HEAD | grep foo” gets me close but that just gives me the >> lines that changed and not the commit that they changed. > > With newer versions of SVN, the log command has a --search argument: > > https://svnbook.red-bean.com/nightly/en/svn.ref.svn.html#svn.ref.svn.sw.search > https://subversion.apache.org/docs/release-notes/1.8.html#svn-log-search > > Mark
Re: Full text search
On Mon, Nov 29, 2021 at 10:10 AM Luke Mauldin wrote: > > Is there a recommended way to do a full text search of commits that include > changed text. For example if I wanted “svn log” to show me all of that > commits that have an added or deleted line that contains “foo”, is that > possible? Git has similar functionality in “git log -S foo” > Using “svn diff -r:HEAD | grep foo” gets me close but that just gives me the > lines that changed and not the commit that they changed. With newer versions of SVN, the log command has a --search argument: https://svnbook.red-bean.com/nightly/en/svn.ref.svn.html#svn.ref.svn.sw.search https://subversion.apache.org/docs/release-notes/1.8.html#svn-log-search Mark
Re: Full text search
Den mån 29 nov. 2021 kl 16:10 skrev Luke Mauldin : > Is there a recommended way to do a full text search of commits that > include changed text. For example if I wanted “svn log” to show me all of > that commits that have an added or deleted line that contains “foo”, is > that possible? Git has similar functionality in “git log -S foo” > Using “svn diff -r:HEAD | grep foo” gets me close but that just gives me > the lines that changed and not the commit that they changed. I'm not familiar with git, but I guess you are looking for a search in the commit message. Have you tried svn log --search? Kind regards, Daniel
Full text search
Is there a recommended way to do a full text search of commits that include changed text. For example if I wanted “svn log” to show me all of that commits that have an added or deleted line that contains “foo”, is that possible? Git has similar functionality in “git log -S foo” Using “svn diff -r:HEAD | grep foo” gets me close but that just gives me the lines that changed and not the commit that they changed.
Full text search engines for SVN?
Does anyone have any full-text search engines they'd recommend for Subversion? I've found a couple geared specifically for subversion: http://www.supose.org/wiki/supose and http://svn-search.sourceforge.net/ But they both appear to be rather abandoned. And they require Tomcat (or similar) for their web front end. There is also OpenGrok, which looks fantastic, but is missing *the* feature I want from svn-search: it restricts results to the code the user can actually access. Suggestions? j -- Joshua J. Kugler - Fairbanks, Alaska Azariah Enterprises - Programming and Website Design jos...@azariah.com - Jabber: pedah...@gmail.com PGP Key: http://pgp.mit.edu/ ID 0x73B13B6A
Re: Full text search engines for SVN?
On Mon, Sep 26, 2011 at 6:46 PM, Joshua J. Kugler jos...@azariah.comwrote: Does anyone have any full-text search engines they'd recommend for Subversion? I've found a couple geared specifically for subversion: http://www.supose.org/wiki/supose and http://svn-search.sourceforge.net/ But they both appear to be rather abandoned. And they require Tomcat (or similar) for their web front end. There is also OpenGrok, which looks fantastic, but is missing *the* feature I want from svn-search: it restricts results to the code the user can actually access. Suggestions? j -- Joshua J. Kugler - Fairbanks, Alaska Azariah Enterprises - Programming and Website Design jos...@azariah.com - Jabber: pedah...@gmail.com PGP Key: http://pgp.mit.edu/ ID 0x73B13B6A This was recently asked...http://svn.haxx.se/users/archive-2011-09/0247.shtml
Re: Full text search engines for SVN?
On Mon, Sep 26, 2011 at 7:40 PM, Geoff Hoffman ghoff...@cardinalpath.comwrote: On Mon, Sep 26, 2011 at 6:46 PM, Joshua J. Kugler jos...@azariah.comwrote: Does anyone have any full-text search engines they'd recommend for Subversion? I've found a couple geared specifically for subversion: http://www.supose.org/wiki/supose and http://svn-search.sourceforge.net/ But they both appear to be rather abandoned. And they require Tomcat (or similar) for their web front end. There is also OpenGrok, which looks fantastic, but is missing *the* feature I want from svn-search: it restricts results to the code the user can actually access. Suggestions? j -- Joshua J. Kugler - Fairbanks, Alaska Azariah Enterprises - Programming and Website Design jos...@azariah.com - Jabber: pedah...@gmail.com PGP Key: http://pgp.mit.edu/ ID 0x73B13B6A This was recently asked...http://svn.haxx.se/users/archive-2011-09/0247.shtml And answered...http://www.google.com/custom?domains=svn.haxx.seq=Svn+Searchersa=Searchsitesearch=svn.haxx.seclient=pub-9313125053076989forid=1channel=8989477434ie=ISO-8859-1oe=ISO-8859-1cof=GALT%3A%230066CC%3BGL%3A1%3BDIV%3A%2399%3BVLC%3A336633%3BAH%3Acenter%3BBGC%3AFF%3BLBGC%3AFF9900%3BALC%3A0066CC%3BLC%3A0066CC%3BT%3A00%3BGFNT%3A66%3BGIMP%3A66%3BFORID%3A1%3Bhl=en Hope it helps you!
Re: Full text search engines for SVN?
On Monday, September 26, 2011, Geoff Hoffman elucidated thus: This was recently asked...http://svn.haxx.se/users/archive-2011-09/0247.shtml And answered...http://www.google.com/custom?domains=svn.haxx.seq=Svn+S earchersa=Searchsitesearch=svn.haxx.seclient=pub-9313125053076989 forid=1channel=8989477434ie=ISO-8859-1oe=ISO-8859-1cof=GALT%3A%23 0066CC%3BGL%3A1%3BDIV%3A%2399%3BVLC%3A336633%3BAH%3Acenter%3BBGC% 3AFF%3BLBGC%3AFF9900%3BALC%3A0066CC%3BLC%3A0066CC%3BT%3A00%3B GFNT%3A66%3BGIMP%3A66%3BFORID%3A1%3Bhl=en Hope it helps you! Thanks! j -- Joshua J. Kugler - Fairbanks, Alaska Azariah Enterprises - Programming and Website Design jos...@azariah.com - Jabber: pedah...@gmail.com PGP Key: http://pgp.mit.edu/ ID 0x73B13B6A