Eskil

Check-in [eb8cfe7274]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Handle files with -review under Fossil correctly.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: eb8cfe7274f135b8033aaa9d7c57b913d5a23c8c
User & Date: peter 2012-02-19 21:58:03.517
Context
2012-02-19
21:58
Cleanup to get tests to run. check-in: 40e553d4d7 user: peter tags: trunk
21:58
Handle files with -review under Fossil correctly. check-in: eb8cfe7274 user: peter tags: trunk
20:03
Corrected merge conflict navigation check-in: 800cc3cd25 user: peter tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/rev.tcl.
456
457
458
459
460
461
462
463
464
465
466


467
468
469
470
471
472
473
    }
    if {[llength $files] > 0} {
        # Fossil diff only handles one file at a time.
        set res ""
        foreach file $files {
            set fcmd $cmd
            lappend fcmd $file
            if {[catch {eval $cmd} fres]} {
                tk_messageBox -icon error -title "FOSSIL error" -message $fres
                return ""
            }


            append res $fres
        }
    } else {
        # Include added files
        lappend cmd -N
        if {[catch {eval $cmd} res]} {
            tk_messageBox -icon error -title "FOSSIL error" -message $res







|



>
>







456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
    }
    if {[llength $files] > 0} {
        # Fossil diff only handles one file at a time.
        set res ""
        foreach file $files {
            set fcmd $cmd
            lappend fcmd $file
            if {[catch {eval $fcmd} fres]} {
                tk_messageBox -icon error -title "FOSSIL error" -message $fres
                return ""
            }
            # Fake the per-file rows
            append res "Index: $file\n==================================\n"
            append res $fres
        }
    } else {
        # Include added files
        lappend cmd -N
        if {[catch {eval $cmd} res]} {
            tk_messageBox -icon error -title "FOSSIL error" -message $res