##// END OF EJS Templates
Cleanup: unifiy the coding style in the ui.py configitems forwarders....
Markus F.X.J. Oberhumer -
r2388:74d56933 default
parent child Browse files
Show More
@@ -145,34 +145,30 b' class ui(object):'
145 145 return self.configitems("extensions")
146 146
147 147 def hgignorefiles(self):
148 result = []
149 cfgitems = self.configitems("ui")
150 for key, value in cfgitems:
151 if key == 'ignore' or key.startswith('ignore.'):
152 path = os.path.expanduser(value)
153 result.append(path)
154 return result
148 ret = []
149 for k, v in self.configitems("ui"):
150 if k == 'ignore' or k.startswith('ignore.'):
151 ret.append(os.path.expanduser(v))
152 return ret
155 153
156 154 def configrevlog(self):
157 155 ret = {}
158 for x in self.configitems("revlog"):
159 k = x[0].lower()
160 ret[k] = x[1]
156 for k, v in self.configitems("revlog"):
157 ret[k.lower()] = v
161 158 return ret
159
162 160 def diffopts(self):
163 161 if self.diffcache:
164 162 return self.diffcache
165 163 ret = { 'showfunc' : True, 'ignorews' : False}
166 for x in self.configitems("diff"):
167 k = x[0].lower()
168 v = x[1]
164 for k, v in self.configitems("diff"):
169 165 if v:
170 166 v = v.lower()
171 167 if v == 'true':
172 value = True
168 v = True
173 169 else:
174 value = False
175 ret[k] = value
170 v = False
171 ret[k.lower()] = v
176 172 self.diffcache = ret
177 173 return ret
178 174
General Comments 0
You need to be logged in to leave comments. Login now