]> git.donarmstrong.com Git - debbugs.git/commitdiff
support a text_orig_value
authorDon Armstrong <don@donarmstrong.com>
Mon, 19 Mar 2012 21:27:24 +0000 (14:27 -0700)
committerDon Armstrong <don@donarmstrong.com>
Mon, 19 Mar 2012 21:27:24 +0000 (14:27 -0700)
Debbugs/Control.pm

index e42f2f9055fe8481aa4b94bb6c69663e75bc4de3..5e39018fbf550520aea5ca5310f623b1e0f396a5 100644 (file)
@@ -2075,7 +2075,7 @@ sub set_merged {
            # figure out the problems
            print {$transcript} "Unable to merge bugs because:\n";
            for my $change (@{$disallowed_changes}) {
-               print {$transcript} "$change->{field} of #$change->{bug} is '$change->{orig_value}' not '$change->{text_value}'\n";
+               print {$transcript} "$change->{field} of #$change->{bug} is '$change->{text_orig_value}' not '$change->{text_value}'\n";
            }
            if ($attempts > 0) {
                croak "Some bugs were altered while attempting to merge";
@@ -2411,6 +2411,7 @@ sub __calculate_merge_changes{
                 allowed  => exists $force_functions{$field}{allowed} ? 0 : $force_functions{$field}{allowed},
                };
            $change->{text_value} = ref($change->{func_value}) eq 'ARRAY'?join(' ',@{$change->{func_value}}):$change->{func_value};
+           $change->{text_orig_value} = ref($change->{orig_value}) eq 'ARRAY'?join(' ',@{$change->{orig_value}}):$change->{orig_value};
            if ($param->{force}) {
                if ($field ne 'package') {
                    push @{$changes{$data->{bug_num}}},$change;