comparison mercurial/ui.py @ 4267:b11a2fb59cf5

revlog: simplify revlog version handling - pass the default version as an attribute on the opener - eliminate config option mess
author Matt Mackall <mpm@selenic.com>
date Thu, 22 Mar 2007 19:52:38 -0500
parents 0a95d0e83b4c
children 1b5b98837bb5
comparison
equal deleted inserted replaced
4266:1b5c38e9d7aa 4267:b11a2fb59cf5
323 for key, value in self.configitems("ui"): 323 for key, value in self.configitems("ui"):
324 if key == 'ignore' or key.startswith('ignore.'): 324 if key == 'ignore' or key.startswith('ignore.'):
325 result.append(os.path.expanduser(value)) 325 result.append(os.path.expanduser(value))
326 return result 326 return result
327 327
328 def configrevlog(self):
329 result = {}
330 for key, value in self.configitems("revlog"):
331 result[key.lower()] = value
332 return result
333
334 def username(self): 328 def username(self):
335 """Return default username to be used in commits. 329 """Return default username to be used in commits.
336 330
337 Searched in this order: $HGUSER, [ui] section of hgrcs, $EMAIL 331 Searched in this order: $HGUSER, [ui] section of hgrcs, $EMAIL
338 and stop searching if one of these is set. 332 and stop searching if one of these is set.