Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Improved patch parsing. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
1ff232f13d12b9caadc5a0c9d2041289 |
User & Date: | peter 2008-11-10 18:26:36.000 |
Context
2008-11-10
| ||
18:46 | New tests check-in: ad2669dd7d user: peter tags: trunk | |
18:26 | Improved patch parsing. check-in: 1ff232f13d user: peter tags: trunk | |
2008-11-06
| ||
07:01 | Handle both rev and plugin at the same time. check-in: 0822f77f17 user: peter tags: trunk | |
Changes
Changes to src/eskil.tcl.
︙ | ︙ | |||
914 915 916 917 918 919 920 | set leftLine 1 set rightLine 1 set leftLines {} set rightLines {} set state none foreach line [split $data \n] { | > | | 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 | set leftLine 1 set rightLine 1 set leftLines {} set rightLines {} set state none foreach line [split $data \n] { # Detect a new file if {[string match ======* $line] || [string match "diff *" $line]} { if {$state != "none"} { displayOnePatch $top $leftLines $rightLines $leftLine $rightLine } set leftLines {} set rightLines {} set state none continue |
︙ | ︙ | |||
939 940 941 942 943 944 945 | set state newfile set style c set leftRE {^\*\*\*\s+(.*)$} set rightRE {^---\s+(.*)$} } } # Detect the first line in a -u style diff | | | 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 | set state newfile set style c set leftRE {^\*\*\*\s+(.*)$} set rightRE {^---\s+(.*)$} } } # Detect the first line in a -u style diff if {[regexp {^--- } $line] && $state eq "none"} { if {$state eq "right" || $state eq "both"} { displayOnePatch $top $leftLines $rightLines $leftLine $rightLine set leftLines {} set rightLines {} set state none } if {$state eq "none"} { |
︙ | ︙ |