--- a/mercurial/ui.py Sun Apr 26 16:50:44 2009 -0500
+++ b/mercurial/ui.py Sun Apr 26 16:50:44 2009 -0500
@@ -15,7 +15,7 @@
class ui(object):
def __init__(self, src=None):
self._buffers = []
- self.quiet = self.verbose = self.debugflag = self.traceback = False
+ self.quiet = self.verbose = self.debugflag = self._traceback = False
self.interactive = self._reportuntrusted = True
self._ocfg = config.config() # overlay
self._tcfg = config.config() # trusted
@@ -113,7 +113,7 @@
self.quiet = self.verbose = False
self._reportuntrusted = self.configbool("ui", "report_untrusted", True)
self.interactive = self.configbool("ui", "interactive", self.isatty())
- self.traceback = self.configbool('ui', 'traceback', False)
+ self._traceback = self.configbool('ui', 'traceback', False)
# update trust information
for user in self.configlist('trusted', 'users'):
@@ -338,9 +338,9 @@
'''print exception traceback if traceback printing enabled.
only to call in exception handler. returns true if traceback
printed.'''
- if self.traceback:
+ if self._traceback:
traceback.print_exc()
- return self.traceback
+ return self._traceback
def geteditor(self):
'''return editor to use'''