File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
tred_extension/umr/contrib/umr Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change 1
1
# -*- cperl -*-
2
2
3
3
# bind compare_trees to = menu Compare Trees
4
+ # bind show_diff to ? menu Show Diff
4
5
5
6
{ package UMR;
6
7
209
210
for my $parent (get_dag_parents($node )) {
210
211
my $parent_id = $parent -> {id };
211
212
my @mapped_parents
212
- = sort grep defined ,
213
- @{ $alignment -> {n2w }[0 ][$root_index ] }
213
+ = map keys %$_ , grep defined ,
214
+ @{ $alignment -> {n2w }[1 ][$root_index ] }
214
215
{ keys %{ $mapping {' 01' }{$parent_id } } };
215
216
my @parents1
216
- = sort grep defined ,
217
- @{ $alignment -> {nw2 }[1][$root_index ] }
217
+ = map keys %$_ , grep defined ,
218
+ @{ $alignment -> {n2w }[1][$root_index ] }
218
219
{ map $_ -> {id }, get_dag_parents($node1 ) };
219
220
$node -> {_diff }{parent }{$_ } = 1
220
221
for grep {
230
231
}
231
232
}
232
233
}
234
+
235
+ sub show_diff {
236
+ ChangingFile(0);
237
+ use Data::Dumper;
238
+ print Dumper $this -> {_diff };
239
+ }
233
240
}
241
+
You can’t perform that action at this time.
0 commit comments