зеркало из https://github.com/mozilla/gecko-dev.git
generalize the interface of BTData::bug_id2bug_url. we he a bug tracking
system which does not have a simple mapping of bugid to url.
This commit is contained in:
Родитель
1826285d66
Коммит
b9f4c1fc38
|
@ -4,8 +4,8 @@
|
||||||
# Tracking system and its relationship to the tinderbox trees.
|
# Tracking system and its relationship to the tinderbox trees.
|
||||||
|
|
||||||
|
|
||||||
# $Revision: 1.6 $
|
# $Revision: 1.7 $
|
||||||
# $Date: 2001/07/20 19:04:53 $
|
# $Date: 2001/08/13 20:01:36 $
|
||||||
# $Author: kestes%walrus.com $
|
# $Author: kestes%walrus.com $
|
||||||
# $Source: /home/hwine/cvs_conversion/cvsroot/mozilla/webtools/tinderbox2/src/default_conf/BTData.pm,v $
|
# $Source: /home/hwine/cvs_conversion/cvsroot/mozilla/webtools/tinderbox2/src/default_conf/BTData.pm,v $
|
||||||
# $Name: $
|
# $Name: $
|
||||||
|
@ -222,7 +222,11 @@ $STATUS_FIELD_NAME = 'Status';
|
||||||
# This function should return the null list '()' if the bug report
|
# This function should return the null list '()' if the bug report
|
||||||
# should be ignored by the tinderbox server. The function returns a
|
# should be ignored by the tinderbox server. The function returns a
|
||||||
# list of trees which should display the data about this bug update.
|
# list of trees which should display the data about this bug update.
|
||||||
|
# Any trees which are not known by the tinderbox server will be
|
||||||
|
# ignored so it is fine to return a tree for every ticket parsed even
|
||||||
|
# if some tickets do not map to tinderbox trees.
|
||||||
|
# It is cleaner to ignore trees we do not know about in the mail processor
|
||||||
|
# then to make the BTData module depend on the TreeData module.
|
||||||
|
|
||||||
sub update2tree {
|
sub update2tree {
|
||||||
my ($tinderbox_ref) = @_;
|
my ($tinderbox_ref) = @_;
|
||||||
|
@ -246,7 +250,8 @@ sub update2tree {
|
||||||
# return a 'mailto: ' to someone who cares about the bug.
|
# return a 'mailto: ' to someone who cares about the bug.
|
||||||
|
|
||||||
sub bug_id2bug_url {
|
sub bug_id2bug_url {
|
||||||
my ($bug_id) = @_;
|
my ($tinderbox_ref) = @_;
|
||||||
|
my ($bug_id) = $tinderbox{$BTData::BUGID_FIELD_NAME};
|
||||||
|
|
||||||
my ($out);
|
my ($out);
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче