mercurial/ui.py
changeset 4258 b11a2fb59cf5
parent 4221 0a95d0e83b4c
child 4487 1b5b98837bb5
equal deleted inserted replaced
4257:1b5c38e9d7aa 4258: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.