bzr grep should be builtin
Bug #503670 reported by
Martin Pool
This bug affects 6 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Won't Fix
|
Medium
|
Parth Malwankar |
Bug Description
james_w wrote:
On Wed, 6 Jan 2010 09:42:04 +1100, Jonathan Lange <email address hidden> wrote:
> Interestingly, I showed the recipe for bzr-tools-grep at UDS-L, and a
> git fan in the audience sniggered about Bazaar's vaunted usability
> because,
> "bzr ls -VR --kind=file --null | xargs -0 grep -In %s"
>
> becomes
> "git grep %s"
>
> Perhaps someone would like to add the grep command to bzr-core, or a plugin.
You mean like lp:~vila/bzr/grep (confusingly a plugin under the bzr
project?)
I agree that it would be great to have it in core.
Related branches
lp:~parthm/bzr/503670-vila-grep-as-builtin
- Parth Malwankar: Disapprove
- Martin Packman (community): Needs Fixing
- Robert Collins (community): Needs Fixing
-
Diff: 216 lines (+183/-0)3 files modifiedbzrlib/builtins.py (+127/-0)
bzrlib/tests/blackbox/__init__.py (+1/-0)
bzrlib/tests/blackbox/test_grep.py (+55/-0)
lp:~parthm/bzr/503670-grep-builtin
- Vincent Ladeuil: Needs Fixing
-
Diff: 747 lines (+676/-1)5 files modifiedNEWS (+3/-0)
bzrlib/builtins.py (+134/-1)
bzrlib/grep.py (+103/-0)
bzrlib/tests/blackbox/__init__.py (+1/-0)
bzrlib/tests/blackbox/test_grep.py (+435/-0)
description: | updated |
Changed in bzr: | |
assignee: | nobody → Parth Malwankar (parthm) |
status: | Confirmed → In Progress |
To post a comment you must log in.
I noticed that lp:~vila/bzr/grep uses xarg and grep as a subprocess.
Essentially the same as the command in comment #1. It won't work on windows.
Maybe this should be a pure python solution?