~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/plugins/bash_completion/bashcomp.py

  • Committer: Vincent Ladeuil
  • Date: 2010-09-28 08:57:31 UTC
  • mto: (5490.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 5492.
  • Revision ID: v.ladeuil+lp@free.fr-20100928085731-8h0duqj5wf4acsgy
Add -m to search for a regexp in news entries instead of the bug number.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
# along with this program; if not, write to the Free Software
17
17
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
18
 
19
 
from __future__ import absolute_import
20
 
 
21
19
from bzrlib import (
22
20
    cmdline,
23
21
    commands,
28
26
)
29
27
import bzrlib
30
28
import re
31
 
import sys
32
29
 
33
30
 
34
31
class BashCodeGen(object):
433
430
        ]
434
431
 
435
432
    def run(self, **kwargs):
 
433
        import sys
 
434
        from bashcomp import bash_completion_function
436
435
        if 'plugin' in kwargs:
437
436
            # work around bug #387117 which prevents us from using param_name
438
437
            if len(kwargs['plugin']) > 0:
443
442
 
444
443
if __name__ == '__main__':
445
444
 
 
445
    import sys
446
446
    import locale
447
447
    import optparse
448
448