Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9, 0.9.1, and 0.9.1.1

stable logview: catch config errors parsing author color

Closes #648

Changeset 9caf4cadb2f3

Parent 2a721e179328

by Steve Borho

Changes to one file · Browse files at 9caf4cadb2f3 Showing diff from parent 2a721e179328 Diff from another changeset...

 
238
239
240
241
242
 
 
 
 
 
243
244
245
 
238
239
240
 
 
241
242
243
244
245
246
247
248
@@ -238,8 +238,11 @@
  if not k.startswith('authorcolor.'): continue   pat = k[12:]   self.author_pats.append((re.compile(pat, re.I), v)) - if self.author_pats or self.repo.ui.configbool('tortoisehg', - 'authorcolor'): + try: + enabled = self.repo.ui.configbool('tortoisehg', 'authorcolor') + except hglib.ConfigError: + enabled = False + if self.author_pats or enabled:   self.color_func = self.text_color_author     def text_color_default(self, rev, author):