Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

annotate: handle error when calling setAnnotationEnabled() with no file

Changeset 64b201448631

Parent 3a6d17984e38

by Yuya Nishihara

Changes to one file · Browse files at 64b201448631 Showing diff from parent 3a6d17984e38 Diff from another changeset...

 
54
55
56
 
57
58
59
 
178
179
180
181
 
182
183
184
 
54
55
56
57
58
59
60
 
179
180
181
 
182
183
184
185
@@ -54,6 +54,7 @@
    self.repo = repo   self._rev = None + self.annfile = None   self._annotation_enabled = bool(opts.get('annotationEnabled', False))     self._revs = [] # by line @@ -178,7 +179,7 @@
  self._updateannotation()     def _updateannotation(self): - if not self.isAnnotationEnabled(): + if not self.isAnnotationEnabled() or not self.annfile:   return   ctx = self.repo[self._rev]   fctx = ctx[hglib.fromunicode(self.annfile)]