Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.0, 1.0.1, and 1.0.2

logview: cache 'tortoisehg.longsummary' config value

Changeset 2deace3b5d61

Parent d6327adefe0d

by Yuki KODAMA

Changes to one file · Browse files at 2deace3b5d61 Showing diff from parent d6327adefe0d Diff from another changeset...

 
66
67
68
 
69
70
71
 
156
157
158
159
 
160
161
162
 
277
278
279
280
281
282
283
 
284
285
286
 
66
67
68
69
70
71
72
 
157
158
159
 
160
161
162
163
 
278
279
280
 
 
 
 
281
282
283
284
@@ -66,6 +66,7 @@
    hglib.invalidaterepo(repo)   + self.longsummary = repo.ui.configbool('tortoisehg', 'longsummary', False)   self.set_author_color()   self.hidetags = hglib.gethidetags(repo.ui)   @@ -156,7 +157,7 @@
    # convert to Unicode for valid string operations   summary = hglib.tounicode(ctx.description()).replace(u'\0', '') - if self.repo.ui.configbool('tortoisehg', 'longsummary'): + if self.longsummary:   limit = 80   lines = summary.splitlines()   if lines: @@ -277,10 +278,7 @@
  if not k.startswith('authorcolor.'): continue   pat = k[12:]   self.author_pats.append((re.compile(pat, re.I), v)) - try: - enabled = self.repo.ui.configbool('tortoisehg', 'authorcolor') - except error.ConfigError: - enabled = False + enabled = self.repo.ui.configbool('tortoisehg', 'authorcolor', False)   if self.author_pats or enabled:   self.color_func = self.text_color_author