mercurial/ui.py
changeset 22291 3b39e1522d8f
parent 22205 9fa429723f26
child 22419 fdfc9faca273
--- a/mercurial/ui.py	Sun Aug 24 23:47:26 2014 +0900
+++ b/mercurial/ui.py	Sun Aug 24 12:35:53 2014 +0900
@@ -626,6 +626,8 @@
         oldout = sys.stdout
         sys.stdin = self.fin
         sys.stdout = self.fout
+        # prompt ' ' must exist; otherwise readline may delete entire line
+        # - http://bugs.python.org/issue12833
         line = raw_input(' ')
         sys.stdin = oldin
         sys.stdout = oldout