##// END OF EJS Templates
hgk: use hg export to write commits...
Andrew Shadura -
r20935:70f9a5d8 default
parent child Browse files
Show More
@@ -3893,7 +3893,7 b' proc mktaggo {} {'
3893 }
3893 }
3894
3894
3895 proc writecommit {} {
3895 proc writecommit {} {
3896 global rowmenuid wrcomtop commitinfo wrcomcmd
3896 global rowmenuid wrcomtop commitinfo
3897
3897
3898 set top .writecommit
3898 set top .writecommit
3899 set wrcomtop $top
3899 set wrcomtop $top
@@ -3908,9 +3908,6 b' proc writecommit {} {'
3908 $top.head insert 0 [lindex $commitinfo($rowmenuid) 0]
3908 $top.head insert 0 [lindex $commitinfo($rowmenuid) 0]
3909 $top.head conf -state readonly
3909 $top.head conf -state readonly
3910 grid x $top.head -sticky w
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 ttk::label $top.flab -text "Output file:"
3911 ttk::label $top.flab -text "Output file:"
3915 ttk::entry $top.fname -width 60
3912 ttk::entry $top.fname -width 60
3916 $top.fname insert 0 [file normalize "commit-[string range $rowmenuid 0 6].diff"]
3913 $top.fname insert 0 [file normalize "commit-[string range $rowmenuid 0 6].diff"]
@@ -3931,9 +3928,8 b' proc wrcomgo {} {'
3931 global wrcomtop
3928 global wrcomtop
3932
3929
3933 set id [$wrcomtop.sha1 get]
3930 set id [$wrcomtop.sha1 get]
3934 set cmd "echo $id | [$wrcomtop.cmd get]"
3935 set fname [$wrcomtop.fname get]
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 error_popup "Error writing commit: $err"
3933 error_popup "Error writing commit: $err"
3938 }
3934 }
3939 catch {destroy $wrcomtop}
3935 catch {destroy $wrcomtop}
@@ -4059,7 +4055,6 b' proc getconfig {} {'
4059 set datemode 0
4055 set datemode 0
4060 set boldnames 0
4056 set boldnames 0
4061 set diffopts "-U 5 -p"
4057 set diffopts "-U 5 -p"
4062 set wrcomcmd "\"\$HG\" --config ui.report_untrusted=false debug-diff-tree --stdin -p --pretty"
4063
4058
4064 set mainfont {Helvetica 9}
4059 set mainfont {Helvetica 9}
4065 set curidfont {}
4060 set curidfont {}
General Comments 0
You need to be logged in to leave comments. Login now