Last change
on this file since 4503 was
1119,
checked in by dkearney, 16 years ago
|
adding example of how to use diff from the tcl core library
|
-
Property svn:executable set to
*
|
File size:
483 bytes
|
Line | |
---|
1 | #!/usr/bin/wish |
---|
2 | |
---|
3 | package require Rappture |
---|
4 | |
---|
5 | set lib [Rappture::library difftest1.xml] |
---|
6 | set lib2 [Rappture::library difftest2.xml] |
---|
7 | |
---|
8 | set i 0 |
---|
9 | |
---|
10 | foreach {changeType path inVal outVal} [$lib diff $lib2] { |
---|
11 | set label "" |
---|
12 | |
---|
13 | if {$changeType == "c"} { |
---|
14 | set label [$lib get $path.about.label] |
---|
15 | } |
---|
16 | |
---|
17 | puts "---- Change $i ----" |
---|
18 | puts "changeType = $changeType" |
---|
19 | puts "path = $path" |
---|
20 | puts "inVal = $inVal" |
---|
21 | puts "outVal = $outVal" |
---|
22 | puts "label = $label" |
---|
23 | incr i |
---|
24 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.