Show More
@@ -3893,7 +3893,7 b' proc mktaggo {} {' | |||
|
3893 | 3893 | } |
|
3894 | 3894 | |
|
3895 | 3895 | proc writecommit {} { |
|
3896 |
global rowmenuid wrcomtop commitinfo |
|
|
3896 | global rowmenuid wrcomtop commitinfo | |
|
3897 | 3897 | |
|
3898 | 3898 | set top .writecommit |
|
3899 | 3899 | set wrcomtop $top |
@@ -3908,9 +3908,6 b' proc writecommit {} {' | |||
|
3908 | 3908 | $top.head insert 0 [lindex $commitinfo($rowmenuid) 0] |
|
3909 | 3909 | $top.head conf -state readonly |
|
3910 | 3910 | grid x $top.head -sticky w |
|
3911 | ttk::label $top.clab -text "Command:" | |
|
3912 | ttk::entry $top.cmd -width 60 -textvariable wrcomcmd | |
|
3913 | grid $top.clab $top.cmd -sticky w -pady 10 | |
|
3914 | 3911 | ttk::label $top.flab -text "Output file:" |
|
3915 | 3912 | ttk::entry $top.fname -width 60 |
|
3916 | 3913 | $top.fname insert 0 [file normalize "commit-[string range $rowmenuid 0 6].diff"] |
@@ -3931,9 +3928,8 b' proc wrcomgo {} {' | |||
|
3931 | 3928 | global wrcomtop |
|
3932 | 3929 | |
|
3933 | 3930 | set id [$wrcomtop.sha1 get] |
|
3934 | set cmd "echo $id | [$wrcomtop.cmd get]" | |
|
3935 | 3931 | set fname [$wrcomtop.fname get] |
|
3936 | if {[catch {exec sh -c $cmd > $fname &} err]} { | |
|
3932 | if {[catch {exec $::env(HG) --config ui.report_untrusted=false export --git -o [string map {% %%} $fname] $id} err]} { | |
|
3937 | 3933 | error_popup "Error writing commit: $err" |
|
3938 | 3934 | } |
|
3939 | 3935 | catch {destroy $wrcomtop} |
@@ -4059,7 +4055,6 b' proc getconfig {} {' | |||
|
4059 | 4055 | set datemode 0 |
|
4060 | 4056 | set boldnames 0 |
|
4061 | 4057 | set diffopts "-U 5 -p" |
|
4062 | set wrcomcmd "\"\$HG\" --config ui.report_untrusted=false debug-diff-tree --stdin -p --pretty" | |
|
4063 | 4058 | |
|
4064 | 4059 | set mainfont {Helvetica 9} |
|
4065 | 4060 | set curidfont {} |
General Comments 0
You need to be logged in to leave comments.
Login now