From 77ad1b019ed9f15b2e23282bc2cff1224eaa4e9e Mon Sep 17 00:00:00 2001 From: "bzrmirror%bugzilla.org" Date: Mon, 27 Oct 2014 21:31:36 +0000 Subject: [PATCH] Bug 1088156 - Add a config file for Reply r=gerv a=glob git-svn-id: svn://10.0.0.236/trunk@265643 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/.bzrrev | 2 +- mozilla/webtools/bugzilla/.gitrev | 2 +- mozilla/webtools/bugzilla/contrib/README | 4 +++ mozilla/webtools/bugzilla/contrib/replyrc | 30 +++++++++++++++++++++++ 4 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 mozilla/webtools/bugzilla/contrib/replyrc diff --git a/mozilla/webtools/bugzilla/.bzrrev b/mozilla/webtools/bugzilla/.bzrrev index c3c35a5abd7..31b93df1426 100644 --- a/mozilla/webtools/bugzilla/.bzrrev +++ b/mozilla/webtools/bugzilla/.bzrrev @@ -1 +1 @@ -9188 \ No newline at end of file +9189 \ No newline at end of file diff --git a/mozilla/webtools/bugzilla/.gitrev b/mozilla/webtools/bugzilla/.gitrev index 9740df41753..4ec8b83e5a1 100644 --- a/mozilla/webtools/bugzilla/.gitrev +++ b/mozilla/webtools/bugzilla/.gitrev @@ -1 +1 @@ -c97e64782c6b3b9d176db5b66abae2e240b456c6 \ No newline at end of file +2fbc1045f5b8e82d9a68328c35ba07d70d9d1877 \ No newline at end of file diff --git a/mozilla/webtools/bugzilla/contrib/README b/mozilla/webtools/bugzilla/contrib/README index f8206292523..f0d83086a24 100644 --- a/mozilla/webtools/bugzilla/contrib/README +++ b/mozilla/webtools/bugzilla/contrib/README @@ -33,6 +33,10 @@ bz_webservice_demo.pl -- An example script that demonstrates how to talk to recode.pl -- Script to convert a database from one encoding (or multiple encodings) to UTF-8. + replyrc -- A config file for Reply (a perl shell) that loads + Bugzilla, extensions and provides a few utility + functions for manipulating Bugzilla data. + sendbugmail.pl -- This script is a drop-in replacement for the 'processmail' script which used to be shipped with Bugzilla, but was replaced by the diff --git a/mozilla/webtools/bugzilla/contrib/replyrc b/mozilla/webtools/bugzilla/contrib/replyrc new file mode 100644 index 00000000000..2c5541e4c8f --- /dev/null +++ b/mozilla/webtools/bugzilla/contrib/replyrc @@ -0,0 +1,30 @@ +# This is a config file for Reply, +# which is a cpan distribution. You can install it with "cpan Reply" or "cpanm Reply". +# To use this config file, either copy as ~/.replyrc or run the following command: +# reply --cfg `pwd`/contrib/replyrc + +script_line1 = use strict; +script_line2 = use warnings; +script_line3 = use v5.10; +script_line4 = use Bugzilla; +script_line5 = Bugzilla->extensions; 1; +script_line6 = sub filter { Bugzilla->template->{SERVICE}->{CONTEXT}->{CONFIG}->{FILTERS}->{$_[0]} } +script_line7 = sub b { Bugzilla::Bug->new(@_) } +script_line8 = sub u { Bugzilla::User->new(@_) } +script_line9 = sub f { Bugzilla::Field->new(@_) } + +[Interrupt] +[FancyPrompt] +[DataDumper] +[Colors] +[ReadLine] +[Hints] +[Packages] +[LexicalPersistence] +[ResultCache] +[Autocomplete::Packages] +[Autocomplete::Lexicals] +[Autocomplete::Functions] +[Autocomplete::Globals] +[Autocomplete::Methods] +[Autocomplete::Commands]