[PATCH] ui.prompt(): let overridden write() method do it's job. Fix for color on win32.
Andrei Vermel
andrei.vermel at gmail.com
Sun Jul 31 10:55:51 CDT 2011
# HG changeset patch
# Parent b192d1dc6a848d08b757dd0f6fb2f4416acc170f
# User Andrei Vermel <avermel at mail.ru>
# Date 1312127463 -14400
ui.prompt(): let overridden write() method do it's job. Fix for color on
win32.
diff --git a/mercurial/ui.py b/mercurial/ui.py
--- a/mercurial/ui.py
+++ b/mercurial/ui.py
@@ -540,7 +540,7 @@
# instead of trying to emulate raw_input, swap our in/out
# with sys.stdin/out
old = sys.stdout, sys.stdin
- sys.stdout, sys.stdin = self.fout, self.fin
+ sys.stdout, sys.stdin = self, self.fin
line = raw_input(prompt)
sys.stdout, sys.stdin = old
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: prompt_fix
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20110731/6e414744/attachment.ksh>
More information about the Mercurial-devel
mailing list