Mercurial > public > mercurial-scm > hg
comparison mercurial/ui.py @ 8137:7fd0616b3d80
ui: kill updateopts
Move setconfig into dispatch._parseconfig
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 23 Apr 2009 15:40:10 -0500 |
parents | 6b5522cb2ad2 |
children | 0ffb8f791b7c |
comparison
equal
deleted
inserted
replaced
8136:6b5522cb2ad2 | 8137:7fd0616b3d80 |
---|---|
64 ui._isatty = sys.stdin.isatty() | 64 ui._isatty = sys.stdin.isatty() |
65 except AttributeError: # not a real file object | 65 except AttributeError: # not a real file object |
66 ui._isatty = False | 66 ui._isatty = False |
67 return ui._isatty | 67 return ui._isatty |
68 | 68 |
69 def updateopts(self, config): | |
70 for section, name, value in config: | |
71 self.setconfig(section, name, value) | |
72 | |
73 def verbosity_constraints(self): | 69 def verbosity_constraints(self): |
74 self.quiet = self.configbool('ui', 'quiet') | 70 self.quiet = self.configbool('ui', 'quiet') |
75 self.verbose = self.configbool('ui', 'verbose') | 71 self.verbose = self.configbool('ui', 'verbose') |
76 self.debugflag = self.configbool('ui', 'debug') | 72 self.debugflag = self.configbool('ui', 'debug') |
77 | 73 |