@leroysheep / Socializer / commits / d3cd72a090

UWC: do not lose description for graduated topics

Junio C Hamano committed Dec 7, 2007 at 01:09 UTC d3cd72a090309b93f19ced44959f3a327d1e794c
1 file changed +6 -2
UWC
+6 -2
index 16597159e9..8f3bfb2535 100755 --- a/UWC +++ b/UWC @@ -97,7 +97,7 @@ sub parse_whats_cooking { next; } - if (/^ [-+.?] / || /^ \S/) { + if (/^ [-+.?*] / || /^ \S/) { $topic->{"names"} .= $_; next; } @@ -151,8 +151,12 @@ sub merge_whats_cooking { my $newtopic = delete $new_wc->{"topic hash"}{$name}; if (!defined $newtopic) { + $topic->{"text"} = ("<<deleted\n" . + $topic->{"head"} . + $topic->{"names"} . + ">>\n\n" . + $topic->{"text"}); $topic->{"names"} = ""; - $topic->{"text"} = "<<deleted>>"; next; } if (($newtopic->{"names"} ne $topic->{"names"}) ||