summaryrefslogtreecommitdiffstats
path: root/Bugzilla/PatchReader/FilterPatch.pm
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2012-08-16 16:10:14 +0200
committerDave Lawrence <dlawrence@mozilla.com>2012-08-16 16:10:14 +0200
commit04669c69cd4d6e1f2e279f04c4595ed55ec490e1 (patch)
tree4d8b0c868d90d8e91d3cc70e74dd14202e08ded5 /Bugzilla/PatchReader/FilterPatch.pm
parentba0b995c4453d3642e19343fa98f1b4034114f39 (diff)
downloadbugzilla-04669c69cd4d6e1f2e279f04c4595ed55ec490e1.tar.gz
bugzilla-04669c69cd4d6e1f2e279f04c4595ed55ec490e1.tar.xz
Bug 779862: shift PatchReader into bugzilla namespace and fix long standing issues
Diffstat (limited to 'Bugzilla/PatchReader/FilterPatch.pm')
-rw-r--r--Bugzilla/PatchReader/FilterPatch.pm43
1 files changed, 43 insertions, 0 deletions
diff --git a/Bugzilla/PatchReader/FilterPatch.pm b/Bugzilla/PatchReader/FilterPatch.pm
new file mode 100644
index 000000000..dfe42e750
--- /dev/null
+++ b/Bugzilla/PatchReader/FilterPatch.pm
@@ -0,0 +1,43 @@
+package Bugzilla::PatchReader::FilterPatch;
+
+use strict;
+
+use Bugzilla::PatchReader::Base;
+
+@Bugzilla::PatchReader::FilterPatch::ISA = qw(Bugzilla::PatchReader::Base);
+
+sub new {
+ my $class = shift;
+ $class = ref($class) || $class;
+ my $this = $class->SUPER::new();
+ bless $this, $class;
+
+ return $this;
+}
+
+sub start_patch {
+ my $this = shift;
+ $this->{TARGET}->start_patch(@_) if $this->{TARGET};
+}
+
+sub end_patch {
+ my $this = shift;
+ $this->{TARGET}->end_patch(@_) if $this->{TARGET};
+}
+
+sub start_file {
+ my $this = shift;
+ $this->{TARGET}->start_file(@_) if $this->{TARGET};
+}
+
+sub end_file {
+ my $this = shift;
+ $this->{TARGET}->end_file(@_) if $this->{TARGET};
+}
+
+sub next_section {
+ my $this = shift;
+ $this->{TARGET}->next_section(@_) if $this->{TARGET};
+}
+
+1