##// END OF EJS Templates
ui: honor interactive=off even if isatty()
Patrick Mezard -
r8538:6419bc7b default
parent child Browse files
Show More
@@ -246,7 +246,10 b' class ui(object):'
246 except: pass
246 except: pass
247
247
248 def interactive(self):
248 def interactive(self):
249 return self.configbool("ui", "interactive") or sys.stdin.isatty()
249 i = self.configbool("ui", "interactive", None)
250 if i is None:
251 return sys.stdin.isatty()
252 return i
250
253
251 def _readline(self, prompt=''):
254 def _readline(self, prompt=''):
252 if sys.stdin.isatty():
255 if sys.stdin.isatty():
General Comments 0
You need to be logged in to leave comments. Login now