Show More
@@ -15,7 +15,7 b' import config, traceback, util, error' | |||||
15 | class ui(object): |
|
15 | class ui(object): | |
16 | def __init__(self, src=None): |
|
16 | def __init__(self, src=None): | |
17 | self._buffers = [] |
|
17 | self._buffers = [] | |
18 | self.quiet = self.verbose = self.debugflag = self.traceback = False |
|
18 | self.quiet = self.verbose = self.debugflag = self._traceback = False | |
19 | self.interactive = self._reportuntrusted = True |
|
19 | self.interactive = self._reportuntrusted = True | |
20 | self._ocfg = config.config() # overlay |
|
20 | self._ocfg = config.config() # overlay | |
21 | self._tcfg = config.config() # trusted |
|
21 | self._tcfg = config.config() # trusted | |
@@ -113,7 +113,7 b' class ui(object):' | |||||
113 | self.quiet = self.verbose = False |
|
113 | self.quiet = self.verbose = False | |
114 | self._reportuntrusted = self.configbool("ui", "report_untrusted", True) |
|
114 | self._reportuntrusted = self.configbool("ui", "report_untrusted", True) | |
115 | self.interactive = self.configbool("ui", "interactive", self.isatty()) |
|
115 | self.interactive = self.configbool("ui", "interactive", self.isatty()) | |
116 | self.traceback = self.configbool('ui', 'traceback', False) |
|
116 | self._traceback = self.configbool('ui', 'traceback', False) | |
117 |
|
117 | |||
118 | # update trust information |
|
118 | # update trust information | |
119 | for user in self.configlist('trusted', 'users'): |
|
119 | for user in self.configlist('trusted', 'users'): | |
@@ -338,9 +338,9 b' class ui(object):' | |||||
338 | '''print exception traceback if traceback printing enabled. |
|
338 | '''print exception traceback if traceback printing enabled. | |
339 | only to call in exception handler. returns true if traceback |
|
339 | only to call in exception handler. returns true if traceback | |
340 | printed.''' |
|
340 | printed.''' | |
341 | if self.traceback: |
|
341 | if self._traceback: | |
342 | traceback.print_exc() |
|
342 | traceback.print_exc() | |
343 | return self.traceback |
|
343 | return self._traceback | |
344 |
|
344 | |||
345 | def geteditor(self): |
|
345 | def geteditor(self): | |
346 | '''return editor to use''' |
|
346 | '''return editor to use''' |
General Comments 0
You need to be logged in to leave comments.
Login now