comparison mercurial/ui.py @ 2888:3848488244fc

Move ui.diffopts to patch.diffopts where it belongs
author Matt Mackall <mpm@selenic.com>
date Tue, 15 Aug 2006 11:34:08 -0500
parents 4ec58b157265
children 20b95aef3fe0
comparison
equal deleted inserted replaced
2887:05257fd28591 2888:3848488244fc
166 def configrevlog(self): 166 def configrevlog(self):
167 result = {} 167 result = {}
168 for key, value in self.configitems("revlog"): 168 for key, value in self.configitems("revlog"):
169 result[key.lower()] = value 169 result[key.lower()] = value
170 return result 170 return result
171
172 def diffopts(self, opts={}):
173 return mdiff.diffopts(
174 text=opts.get('text'),
175 showfunc=(opts.get('show_function') or
176 self.configbool('diff', 'showfunc', None)),
177 ignorews=(opts.get('ignore_all_space') or
178 self.configbool('diff', 'ignorews', None)),
179 ignorewsamount=(opts.get('ignore_space_change') or
180 self.configbool('diff', 'ignorewsamount', None)),
181 ignoreblanklines=(opts.get('ignore_blank_lines') or
182 self.configbool('diff', 'ignoreblanklines', None)))
183 171
184 def username(self): 172 def username(self):
185 """Return default username to be used in commits. 173 """Return default username to be used in commits.
186 174
187 Searched in this order: $HGUSER, [ui] section of hgrcs, $EMAIL 175 Searched in this order: $HGUSER, [ui] section of hgrcs, $EMAIL