diff options
author | terry%mozilla.org <> | 1999-05-27 21:13:40 +0000 |
---|---|---|
committer | terry%mozilla.org <> | 1999-05-27 21:13:40 +0000 |
commit | 65aeb54b2937560d2eb4ca46ad9a58c636afb361 (patch) | |
tree | 15a4d0f8cd775556fe5852e3807c918f72e92bac /processmail | |
parent | b0ce98e67626a85a78ea0defb8533f5adb87e2f3 (diff) | |
download | bugs-65aeb54b2937560d2eb4ca46ad9a58c636afb361.tar bugs-65aeb54b2937560d2eb4ca46ad9a58c636afb361.tar.gz bugs-65aeb54b2937560d2eb4ca46ad9a58c636afb361.tar.bz2 bugs-65aeb54b2937560d2eb4ca46ad9a58c636afb361.tar.xz bugs-65aeb54b2937560d2eb4ca46ad9a58c636afb361.zip |
Added dependencies, so that you can mark which bugs depend on which
other ones.
Diffstat (limited to 'processmail')
-rwxr-xr-x | processmail | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/processmail b/processmail index b5852bbb8..ccc8da271 100755 --- a/processmail +++ b/processmail @@ -105,6 +105,34 @@ sub DescCC { } +sub DescDependencies { + my ($id) = (@_); + if (!Param("usedependencies")) { + return ""; + } + my $result = ""; + my $me = "blocked"; + my $target = "dependson"; + my $title = "BugsThisDependsOn"; + for (1..2) { + SendSQL("select $target from dependencies where $me = $id order by $target"); + my @list; + while (MoreSQLData()) { + push(@list, FetchOneColumn()); + } + if (@list) { + $result .= "$title: " . join(',', @list) . "\n"; + } + my $tmp = $me; + $me = $target; + $target = $tmp; + $title = "OtherBugsDependingOnThis"; + } + return $result; +} + + + sub GetBugText { my ($id) = (@_); undef %::bug; @@ -171,7 +199,7 @@ AssignedTo: $::bug{'assigned_to'} ReportedBy: $::bug{'reporter'} $qa_contact$target_milestone${status_whiteboard}URL: $::bug{'bug_file_loc'} " . DescCC($::bug{'cclist'}) . "Summary: $::bug{'short_desc'} - +" . DescDependencies($id) . " $::bug{'long_desc'} "; |