mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
hgk: ignore ctrl-z as EOF on windows
Port a patch from gitk. Original description: Cygwin's Tcl is configured to honor any occurence of ctrl-z as an end-of-file marker, while some commits in the git repository and possibly elsewhere include that character in the commit comment. This causes gitk ignore commit history following such a comment and incorrect graphs. This change affects only Windows as Tcl on other platforms already has eofchar == {}. This fixes problems noted by me and by Ray Lehtiniemi, and the fix was suggested by Shawn Pierce. Signed-off-by: Mark Levedahl <mdl123@verizon.net> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
parent
283e1d99ab
commit
3634ed2b59
@ -208,7 +208,7 @@ proc getcommits {rargs} {
|
|||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
set leftover {}
|
set leftover {}
|
||||||
fconfigure $commfd -blocking 0 -translation lf
|
fconfigure $commfd -blocking 0 -translation lf -eofchar {}
|
||||||
fileevent $commfd readable [list getcommitlines $commfd]
|
fileevent $commfd readable [list getcommitlines $commfd]
|
||||||
$canv delete all
|
$canv delete all
|
||||||
$canv create text 3 3 -anchor nw -text "Reading commits..." \
|
$canv create text 3 3 -anchor nw -text "Reading commits..." \
|
||||||
|
Loading…
Reference in New Issue
Block a user