Re: Why are bug comment numbers multiples of 5?
Hi,
i wrote:
> > One would have to make experiments.
tuxifan@posteo.de wrote:
> The easier way to figure this out would most likely be to just read the
> source code.
Does not look so to the eyes of a C programmer.
One would need to know enough of (cough) Perl to find out from where
$msg_number stems in:
https://sources.debian.org/src/debbugs/2.6.4/Debbugs/CGI/Bugreport.pm/?hl=465#L465
$output .= qq|<hr><p class="msgreceived"><a name="$msg_number"></a><a name="msg$msg_number"></a><a href="#$msg_number">Message #$msg_number</a>
My best guess is
https://sources.debian.org/src/debbugs/2.6.4/cgi/bugreport.cgi/?hl=331#L331
push @log, handle_record($record,$ref,$msg_num, ...
But there $msg_num looks like being incremented in single steps, not in
steps of 5. It starts by either 0 or $msg - 1. So i guess it's the
latter and $msg is already 5 or whatever we see in the bug reports.
When looking for $msg i see a comment in
https://sources.debian.org/src/debbugs/2.6.4/cgi/bugreport.cgi/?hl=331#L60
shortly before $msg might get filled from some "$param{msg}":
# This is craptacular.
I agree. My capacity for suffering is exhausted by now.
Have a nice day :)
Thomas
Reply to: