fulltext searching of bzr repositories
Nicholas Allen
allen at ableton.com
Mon Jun 9 14:25:33 BST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
That's great! I would love it if this was part of the core bzr commands
sometime...
Nick
Robert Collins wrote:
| https://edge.launchpad.net/bzr-search
|
| In the weekend, I felt this was an interesting topic to have a stab at.
|
| The result is a plugin which creates a search index. Currently it only
| indexes the revision commit messages, but its pretty straight forward to
| index additional components - all it needs is logic to generate a
| posting list from them, and a Hit instance to provide reporting when the
| results are found.
|
| There are currently two caveats: The disk format is not finalised, so
| users will need to remove the indices and recreate as I tweak it more.
| And secondly, the reason for the disk format not being finalised - when
| a posting list is more than 2K long, the bzrlib index bisection logic
| will fail to parse the output index. This means that running it on bzr
| itself fails :(. But it works fine on bzr-svn for instance:
|
| plugins/svn/trunk$ time bzr index .
|
| real 0m1.518s
| user 0m1.140s
| sys 0m0.100s
| plugins/svn/trunk$ time bzr search workaround
| Revision id 'jelmer at samba.org-20080511215646-kxxs86xvurf96nuq'. Summary:
| 'Fix workaround for bug in http ra backend.'
|
| real 0m0.411s
| user 0m0.324s
| sys 0m0.080s
|
| Cheers,
| Rob
|
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFITS9NbpmWsXfOU58RAhkiAKC5/3blWX82V5KE3xigVw8yGD+y4wCgnEwD
dhJdQQOI5H6FFfGEV5NBitc=
=/jWX
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list